mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 05:50:31 +00:00
ci: add final job to aggregate build-test results
Adds a `final` job that depends on all other jobs and fails if any of them failed or were skipped. This provides a single required status check for branch protection instead of listing each job individually. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2a3eb97a03
commit
45ecee53a1
1 changed files with 16 additions and 0 deletions
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
|
|
@ -146,3 +146,19 @@ jobs:
|
|||
- run: mise x jq -- jq --version
|
||||
- run: which jq
|
||||
- run: jq --version
|
||||
|
||||
final:
|
||||
needs:
|
||||
- build
|
||||
- test
|
||||
- specific_version
|
||||
- checksum_failure
|
||||
- custom_cache_key
|
||||
- fetch_from_github
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 1
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check CI job results
|
||||
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
|
||||
run: exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue