Skip to content

Commit

Permalink
better output? and skip docker scenarios on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Dec 6, 2024
1 parent 2ba7c34 commit 9b31fa8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/validate_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 6 additions & 1 deletion Tests/MsBuild/Run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 9b31fa8

Please sign in to comment.