update unit and e2e tests

This commit is contained in:
IvanZosimov
2023-05-18 11:11:51 +02:00
parent 21cf89aa73
commit 2f028bc044
6 changed files with 113 additions and 28 deletions

View File

@ -49,7 +49,7 @@ export class DotnetVersionResolver {
private isLatestPatchSyntax() {
const majorTag = this.inputVersion.match(
/^(?<majorTag>\d+)\.\d+\.\d{1}x{2}$/
/^(?<majorTag>\d+)\.\d+\.\d{1}(x|X|\*){2}$/
)?.groups?.majorTag;
if (
majorTag &&

View File

@ -112,7 +112,9 @@ function outputInstalledVersion(
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.`