We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6ed009 + 0c368ee commit b689783Copy full SHA for b689783
.github/workflows/main.yml
@@ -137,3 +137,20 @@ jobs:
137
- uses: Swatinem/rust-cache@v2
138
- run: cargo doc
139
140
+ success:
141
+ needs:
142
+ - clippy
143
+ - test
144
+ - cross_compile_test
145
+ - ios_cross_compile_test
146
+ - rustfmt
147
+ - doc
148
+ runs-on: ubuntu-latest
149
+ # GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
150
+ # failed" as success. So we have to do some contortions to ensure the job fails if any of its
151
+ # dependencies fails.
152
+ if: always() # make sure this is never "skipped"
153
+ steps:
154
+ # Manually check the status of all dependencies. `if: failure()` does not work.
155
+ - name: check if any dependency failed
156
+ run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
0 commit comments