Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add a job that runs when all required status checks pass #1594

Merged
merged 3 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading