Skip to content

Commit

Permalink
Merge pull request #1594 from zcash/ci-required-status-checks
Browse files Browse the repository at this point in the history
CI: Add a job that runs when all required status checks pass
  • Loading branch information
nuttycom authored Oct 26, 2024
2 parents b78a91f + 56fa0b8 commit 5edaa26
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/audits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ jobs:
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check licenses

required-checks:
name: Required status checks have passed
needs:
- cargo-vet
- cargo-deny
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Determine whether all required-pass steps succeeded
run: |
echo '${{ toJSON(needs) }}' | jq -e '[ .[] | .result == "success" ] | all'
4 changes: 2 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: librustzcash documentation
on:
push:
branches:
- master
- main

jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: prepare
Expand Down
30 changes: 25 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI checks
name: CI

on:
pull_request:
Expand All @@ -23,7 +23,7 @@ jobs:
state:
- NOT_A_PUZZLE
- Orchard
- NU6
- NU7

include:
- target: Linux
Expand All @@ -35,12 +35,12 @@ jobs:

- state: Orchard
extra_flags: orchard
- state: NU6
rustflags: '--cfg zcash_unstable="nu6"'
- state: NU7
rustflags: '--cfg zcash_unstable="nu7"'

exclude:
- target: macOS
state: NU6
state: NU7

env:
RUSTFLAGS: ${{ matrix.rustflags }}
Expand Down Expand Up @@ -366,3 +366,23 @@ jobs:
) -eq $(
uuidparse -n -o uuid $U4 | sort | uniq | wc -l
)
required-checks:
name: Required status checks have passed
needs:
- test
- check-msrv
- build-latest
- build-nodefault
- bitrot
- clippy
- doc-links
- fmt
- protobuf
- uuid
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Determine whether all required-pass steps succeeded
run: |
echo '${{ toJSON(needs) }}' | jq -e '[ .[] | .result == "success" ] | all'

0 comments on commit 5edaa26

Please sign in to comment.