Skip to content

Commit

Permalink
fix(ci): added job for required status check
Browse files Browse the repository at this point in the history
  • Loading branch information
iluwaa committed Nov 12, 2024
1 parent cf48db5 commit b1a8c88
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Rust CI"
name: "CI"
on:
pull_request:
paths:
Expand Down Expand Up @@ -50,3 +50,18 @@ jobs:

- name: Run tests
run: cargo nextest run --no-fail-fast

ci-success:
name: Github Status Check
runs-on: ubuntu-latest
if: always() && !cancelled()
needs: [ build ]
steps:
- name: Status
run: |
# This will check all jobs status in the `needs` list, and fail job if one is failed.
# Since we split prover and core to different flows, this job will be only as Required Status Check in the Pull Request.
if [[ ${{ contains(join(needs.*.result, ','), 'failure') }} == "true" ]]; then
echo "Intentionally failing to block PR from merging"
exit 1
fi

0 comments on commit b1a8c88

Please sign in to comment.