diff --git a/.github/workflows/validate_pull_request.yml b/.github/workflows/validate_pull_request.yml index 9e75223ce..777185432 100644 --- a/.github/workflows/validate_pull_request.yml +++ b/.github/workflows/validate_pull_request.yml @@ -35,5 +35,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-dotnet@v3 - - run: | + - env: + GithubOS: ${{matrix.os}} + run: | pwsh ./Tests/MsBuild/Run.ps1 diff --git a/Tests/MsBuild/Run.ps1 b/Tests/MsBuild/Run.ps1 index f3bcfd0d9..6ce552385 100644 --- a/Tests/MsBuild/Run.ps1 +++ b/Tests/MsBuild/Run.ps1 @@ -18,7 +18,12 @@ New-Item $basePath -ItemType Directory | Out-Null $failureMessage = "" + foreach ($scenario in $scenarios) { + if ($env:GithubOS -eq "windows-latest") { + continue + } + Write-Host "::group::$($scenario.name)" $scenarioPath = Join-Path $basePath $scenario.name @@ -71,7 +76,7 @@ RUN dotnet build -c Release Write-Host "::group::UnformattedFileCausesError" -$output = & dotnet build -c Release ./TestCases/UnformattedFileCausesError/Project.csproj +& dotnet build -c Release ./TestCases/UnformattedFileCausesError/Project.csproj > $output Write-Host $output if ($LASTEXITCODE -ne 1) { $failureMessage += "::error::The TestCase UnformattedFileCausesError did not return an exit code of 1`n"