From 9dc7ce2938f37fc127f8b7dc7ad50c20aa87e4f4 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 12 Dec 2023 00:57:18 +0100 Subject: [PATCH] Make sure all tests need to pass for ci to pass, not just last --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b4a3ff8a5..08065bafa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: