From a00230829c94772f32510e7103e11d7a204ab249 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sun, 25 Jan 2026 09:22:34 -0500 Subject: [PATCH] ci: Make sure that the ci-passed fails if any previous steps were not successful --- .github/workflows/continuous-integration.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 61bf0a2e8..1faeb4f2c 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -21,10 +21,17 @@ jobs: # Quality gate to allow PR merge, used in the branch protection rules. ci-passed: runs-on: ubuntu-latest - needs: [test-results, unix, flatpak] + needs: [main-build, test-results, unix, flatpak] + if: always() steps: - - run: echo "✅ CI passed" > $GITHUB_STEP_SUMMARY + - name: Check all steps passed + run: | + if [[ ${{needs.main-build.result}} == 'success' && ${{needs.test-results.result}} == 'success' && ${{needs.unix.result}} == 'success' && ${{needs.flatpak.result}} == 'success' ]]; then + echo "✅ CI passed" > $GITHUB_STEP_SUMMARY + else + exit 1 + fi # Summary of test results, combined from test result artifacts. # Runs even if the tests fail to provide a summary of the failures.