Skip to content

Commit f03524b

Browse files
authored
Merge pull request #7 from mjun0812/fix/CI-status
fix: GHA CI status check
2 parents ed40b6a + 5ace270 commit f03524b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
ci:
13+
name: CI
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
@@ -63,3 +64,16 @@ jobs:
6364
docker compose build
6465
docker compose up -d
6566
docker compose down
67+
68+
ci-check:
69+
name: CI Status Check
70+
runs-on: ubuntu-latest
71+
needs: [ci]
72+
if: always()
73+
steps:
74+
- name: Some checks failed
75+
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')}}
76+
run: exit 1
77+
- name: All checks ok
78+
if: ${{ contains(needs.*.result, 'success') }}
79+
run: exit 0

0 commit comments

Comments
 (0)