Skip to content

Commit d4aec48

Browse files
committed
ci: add alls-green action
1 parent 040042f commit d4aec48

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,20 @@ jobs:
120120
- uses: rustsec/audit-check@v2
121121
with:
122122
token: ${{ secrets.GITHUB_TOKEN }}
123+
124+
# Check that all tests defined above pass. This makes it easy to set a single "required" test in branch
125+
# protection instead of having to update it frequently. See https://github.com/re-actors/alls-green#why.
126+
check:
127+
name: Checks pass
128+
if: always()
129+
needs:
130+
- test
131+
- fmt
132+
- clippy
133+
- msrv
134+
- audit
135+
runs-on: ubuntu-latest
136+
steps:
137+
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # ratchet:re-actors/alls-green@v1.2.2
138+
with:
139+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)