Skip to content

Commit 48db7e6

Browse files
committed
ci: add final target for branch protection
1 parent d30c041 commit 48db7e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,17 @@ jobs:
8686

8787
- name: Test
8888
run: cargo +${{ matrix.rust }} test --workspace ${{ matrix.args }} -- --nocapture
89+
90+
ci:
91+
runs-on: ubuntu-latest
92+
needs:
93+
- fmt
94+
- test
95+
if: always()
96+
steps:
97+
- name: Success
98+
if: ${{ !(contains(needs.*.result, 'failure')) }}
99+
run: exit 0
100+
- name: Failure
101+
if: ${{ contains(needs.*.result, 'failure') }}
102+
run: exit 1

0 commit comments

Comments
 (0)