Skip to content

Commit 8dcdae9

Browse files
authored
Merge pull request #3658 from autonomys/simplify-ci-rules
Add `rust-all` CI job to aggregate results
2 parents 7ba133a + 8d5acc5 commit 8dcdae9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rust.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,3 +391,28 @@ jobs:
391391
- name: check for unused dependencies
392392
run: |
393393
./scripts/find-unused-deps.sh
394+
395+
rust-all:
396+
# 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
397+
if: ${{ always() }}
398+
runs-on: ubuntu-24.04
399+
needs:
400+
- cargo-fmt
401+
- cargo-clippy
402+
- cargo-runtime-build
403+
- cargo-test
404+
- check-runtime-benchmarks
405+
- cargo-check-individually
406+
- cargo-unused-deps
407+
steps:
408+
- name: Check job statuses
409+
# Another hack is to actually check the status of the dependencies or else it'll fall through
410+
run: |
411+
echo "Checking statuses..."
412+
[[ "${{ needs.cargo-fmt.result }}" == "success" ]] || exit 1
413+
[[ "${{ needs.cargo-clippy.result }}" == "success" ]] || exit 1
414+
[[ "${{ needs.cargo-runtime-build.result }}" == "success" ]] || exit 1
415+
[[ "${{ needs.cargo-test.result }}" == "success" ]] || exit 1
416+
[[ "${{ needs.check-runtime-benchmarks.result }}" == "success" ]] || exit 1
417+
[[ "${{ needs.cargo-check-individually.result }}" == "success" ]] || exit 1
418+
[[ "${{ needs.cargo-unused-deps.result }}" == "success" ]] || exit 1

0 commit comments

Comments
 (0)