Skip to content

Commit efa51f6

Browse files
committed
CI: Add bouncer step to PR testing
1 parent 0c87fae commit efa51f6

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/test-pr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Pico CMS pull request
2+
3+
on:
4+
pull_request: {}
5+
6+
jobs:
7+
test:
8+
name: Test Pico CMS
9+
uses: ./.github/workflows/test.yml
10+
11+
bouncer:
12+
name: Bouncer
13+
14+
needs: test
15+
if: ${{ always() }}
16+
17+
runs-on: ubuntu-latest
18+
permissions: {}
19+
20+
steps:
21+
- name: Check build matrix status
22+
if: ${{ needs.test.result != 'success' }}
23+
run: |
24+
:
25+
echo "Some tests of Pico CMS failed." >&2
26+
echo "Please check the GitHub workflow logs for details." >&2
27+
exit 1

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'master'
77
- 'pico-3.0'
88
tags: [ 'v*.*.*' ]
9-
pull_request: {}
9+
workflow_call: {}
1010

1111
jobs:
1212
test:

0 commit comments

Comments
 (0)