Skip to content

Commit 35abd95

Browse files
nazar-pcLegNeato
authored andcommitted
Check status of dependencies in CI
1 parent b19a858 commit 35abd95

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ jobs:
178178
# 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
179179
if: ${{ always() }}
180180
steps:
181-
- run: echo "All test jobs passed"
181+
# Another hack is to actually check the status of the dependencies or else it'll fall through
182+
- run: |
183+
echo "Checking statuses..."
184+
[[ "${{ needs.test.result }}" == "success" ]] || exit 1
185+
[[ "${{ needs.compiletest.result }}" == "success" ]] || exit 1
186+
[[ "${{ needs.difftest.result }}" == "success" ]] || exit 1
187+
[[ "${{ needs.android.result }}" == "success" ]] || exit 1
182188
183189
lint:
184190
name: Lint

0 commit comments

Comments
 (0)