You've already forked setup-dotnet
mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-10-30 06:47:57 +07:00
update unit and e2e tests
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -270,7 +270,7 @@ class DotnetVersionResolver {
|
||||
}
|
||||
isLatestPatchSyntax() {
|
||||
var _b, _c;
|
||||
const majorTag = (_c = (_b = this.inputVersion.match(/^(?<majorTag>\d+)\.\d+\.\d{1}x{2}$/)) === null || _b === void 0 ? void 0 : _b.groups) === null || _c === void 0 ? void 0 : _c.majorTag;
|
||||
const majorTag = (_c = (_b = this.inputVersion.match(/^(?<majorTag>\d+)\.\d+\.\d{1}(x|X|\*){2}$/)) === null || _b === void 0 ? void 0 : _b.groups) === null || _c === void 0 ? void 0 : _c.majorTag;
|
||||
if (majorTag &&
|
||||
parseInt(majorTag) <
|
||||
DotnetInstallerLimits.LatestPatchSyntaxMinimalMajorTag) {
|
||||
@ -606,6 +606,7 @@ function getVersionFromGlobalJson(globalJsonPath) {
|
||||
function outputInstalledVersion(installedVersions, globalJsonFileInput) {
|
||||
if (!installedVersions.length) {
|
||||
core.info(`No .NET version was installed. The 'dotnet-version' output will not be set.`);
|
||||
return;
|
||||
}
|
||||
if (installedVersions.includes(null)) {
|
||||
core.warning(`Failed to output the installed version of .NET. The 'dotnet-version' output will not be set.`);
|
||||
|
||||
Reference in New Issue
Block a user