Skip to content

Commit

Permalink
GitHub Actionsでテスト失敗時の終了コードがジョブの成否に反映されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
upsilon committed Dec 1, 2022
1 parent 001d56c commit 7a1f327
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
$altCoverPath = "$($env:NUGET_PACKAGES)\altcover\$($altCoverVersion)\tools\$($targetFramework)\AltCover.exe"
$xunitPath = "$($env:NUGET_PACKAGES)\xunit.runner.console\$($xunitVersion)\tools\$($targetFramework)\xunit.console.exe"
Start-Process `
$p = Start-Process `
-FilePath $altCoverPath `
-ArgumentList (
'--inputDirectory',
Expand All @@ -105,9 +105,14 @@ jobs:
'--visibleBranches'
) `
-NoNewWindow `
-PassThru `
-Wait
Start-Process `
if ($p.ExitCode -ne 0) {
exit $p.ExitCode
}
$p = Start-Process `
-FilePath $altCoverPath `
-ArgumentList (
'runner',
Expand All @@ -119,8 +124,13 @@ jobs:
'.\__Instrumented\OpenTween.Tests.dll'
) `
-NoNewWindow `
-PassThru `
-Wait
if ($p.ExitCode -ne 0) {
exit $p.ExitCode
}
- name: Upload test results to codecov
shell: pwsh
run: |
Expand Down

0 comments on commit 7a1f327

Please sign in to comment.