Make sure all tests need to pass for ci to pass, not just last

This commit is contained in:
Jan 2023-12-12 00:57:18 +01:00
parent 74154653aa
commit 8d0147d6cf
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -86,11 +86,18 @@ jobs:
- name: Test
working-directory: ${{ github.workspace }}/build/lib/Release_x86/tests
run: |
$combinedExitCode = 0
./ObjCommonTests
$combinedExitCode = [System.Math]::max($combinedExitCode, $LASTEXITCODE)
./ObjLoadingTests
$combinedExitCode = [System.Math]::max($combinedExitCode, $LASTEXITCODE)
./ParserTests
$combinedExitCode = [System.Math]::max($combinedExitCode, $LASTEXITCODE)
./ZoneCodeGeneratorLibTests
$combinedExitCode = [System.Math]::max($combinedExitCode, $LASTEXITCODE)
./ZoneCommonTests
$combinedExitCode = [System.Math]::max($combinedExitCode, $LASTEXITCODE)
exit $combinedExitCode
- name: Upload artifacts
uses: actions/upload-artifact@v4
with: