File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -128,3 +128,18 @@ jobs:
128128 run : |
129129 rustup set profile minimal && rustup default "nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/clippy)" && rustup component add clippy
130130 - run : cargo clippy -- -D clippy::all
131+
132+ success :
133+ needs :
134+ - test
135+ - rustfmt
136+ - clippy
137+ runs-on : ubuntu-latest
138+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
139+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
140+ # dependencies fails.
141+ if : always() # make sure this is never "skipped"
142+ steps :
143+ # Manually check the status of all dependencies. `if: failure()` does not work.
144+ - name : check if any dependency failed
145+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
You can’t perform that action at this time.
0 commit comments