From 2974d7df9faff4bac10d98a20bf5e7686d8a1b15 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Sat, 28 Jun 2025 18:02:33 +0300 Subject: [PATCH] Check status of dependencies in CI --- .github/workflows/ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6eaf2204d3..27597b1fd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -178,7 +178,13 @@ jobs: # Hack for buggy GitHub Actions behavior with skipped checks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks if: ${{ always() }} steps: - - run: echo "All test jobs passed" + # Another hack is to actually check the status of the dependencies or else it'll fall through + - run: | + echo "Checking statuses..." + [[ "${{ needs.test.result }}" == "success" ]] || exit 1 + [[ "${{ needs.compiletest.result }}" == "success" ]] || exit 1 + [[ "${{ needs.difftest.result }}" == "success" ]] || exit 1 + [[ "${{ needs.android.result }}" == "success" ]] || exit 1 lint: name: Lint