File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 71
71
- name : Install Rust
72
72
run : rustup update nightly && rustup default nightly
73
73
- run : cargo bench --all
74
+
75
+ success :
76
+ needs :
77
+ - docker
78
+ - rustfmt
79
+ - wasm
80
+ - cb
81
+ - benchmarks
82
+ runs-on : ubuntu-latest
83
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
84
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
85
+ # dependencies fails.
86
+ if : always() # make sure this is never "skipped"
87
+ steps :
88
+ # Manually check the status of all dependencies. `if: failure()` does not work.
89
+ - name : check if any dependency failed
90
+ run : jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
You can’t perform that action at this time.
0 commit comments