Skip to content

Commit c15d28c

Browse files
ci(workflow): Add required jobs aggregator check
Add a single required-check aggregator job to CI. This makes branch protection easier to manage while still enforcing the full required CI set, and keeps `codecov` intentionally out of the gate. Closes #977 Closes [RUST-143](https://linear.app/getsentry/issue/RUST-143/add-aggregator-required-ci-job)
1 parent 0e05d65 commit c15d28c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,21 @@ jobs:
170170

171171
- name: Run cargo doc
172172
run: cargo doc --workspace --all-features --document-private-items --no-deps
173+
174+
required:
175+
name: Check required jobs
176+
runs-on: ubuntu-latest
177+
if: ${{ always() }}
178+
# Keep this list in sync with all CI jobs that should be required.
179+
# `codecov` is intentionally excluded from this aggregator.
180+
needs: [lints, check, test, MSRV, doc]
181+
182+
steps:
183+
- name: Fail if any required job did not succeed
184+
if: >-
185+
${{
186+
contains(needs.*.result, 'failure') ||
187+
contains(needs.*.result, 'cancelled') ||
188+
contains(needs.*.result, 'skipped')
189+
}}
190+
run: exit 1

0 commit comments

Comments
 (0)