Skip to content

Commit 8876524

Browse files
committed
ci: Use alls-green action for easy status checks
1 parent 0e46efe commit 8876524

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Unified workflow for all lints & tests.
22
#
33
# Indirectly based on the slog CI config.
4+
# All merged into one file so we can use `allgood` workaround for Gihtub Actions.
45
on: [push, pull_request]
56
name: CI
67

@@ -213,3 +214,17 @@ jobs:
213214
- shell: bash
214215
run: |
215216
cargo fmt --all -- --check
217+
# Workaround for Github status checks to require that all tests pass
218+
# Discussion: https://github.com/orgs/community/discussions/26733
219+
# App: https://github.com/marketplace/actions/alls-green
220+
allgood:
221+
if: always()
222+
needs: [test,miri,clippy,docs,cargo-rdme,typos,rustfmt]
223+
runs-on: ubuntu-latest
224+
steps:
225+
- name: Decide whether the needed jobs succeeded or failed
226+
uses: re-actors/alls-green@release/v1
227+
with:
228+
# allowed-failures: docs, linters
229+
# allowed-skips: non-voting-flaky-job
230+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)