Skip to content

Commit 7fb8d19

Browse files
authored
Merge pull request #3 from unlibra/ci/status-check
ci: add status-check job for branch protection
2 parents 10bfded + 0714538 commit 7fb8d19

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,16 @@ jobs:
3434

3535
- name: Build
3636
run: npm run build
37+
38+
# Job to verify that all tests passed
39+
# Use this job name in Branch Protection Rules
40+
status-check:
41+
runs-on: ubuntu-latest
42+
needs: [test]
43+
if: always()
44+
steps:
45+
- name: Check test status
46+
if: ${{ needs.test.result != 'success' }}
47+
run: exit 1
48+
- name: All tests passed
49+
run: echo "All tests passed"

0 commit comments

Comments
 (0)