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