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 fb213d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
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 fb213d2

Please sign in to comment.