File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 6565 run : ./pw uv run cargo fmt --all --check
6666 - name : Check Rust
6767 run : ./pw uv run cargo check
68+
69+ # for some insane reason it's impossible to configure github actions to require that all checks pass before merging.
70+ # you have to create a rule eith every single job in your ci, and remember to manually update that rule when they change.
71+ # so instead we need this job at the end that checks the status of all the previous jobs so we don't need to constantly
72+ # worry about keeping the rule up to date.
73+ all-checks :
74+ runs-on : ubuntu-latest
75+ needs : build
76+ if : always()
77+ steps :
78+ - name : Check previous job results
79+ run : |
80+ if [ "${{ needs.build.result }}" != "success" ]; then
81+ echo "previous jobs failed"
82+ exit 1
83+ fi
You can’t perform that action at this time.
0 commit comments