CI: Add bouncer step to PR testing
This commit is contained in:
parent
0c87fae09b
commit
efa51f66b1
27
.github/workflows/test-pr.yml
vendored
Normal file
27
.github/workflows/test-pr.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Test Pico CMS pull request
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test Pico CMS
|
||||||
|
uses: ./.github/workflows/test.yml
|
||||||
|
|
||||||
|
bouncer:
|
||||||
|
name: Bouncer
|
||||||
|
|
||||||
|
needs: test
|
||||||
|
if: ${{ always() }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check build matrix status
|
||||||
|
if: ${{ needs.test.result != 'success' }}
|
||||||
|
run: |
|
||||||
|
:
|
||||||
|
echo "Some tests of Pico CMS failed." >&2
|
||||||
|
echo "Please check the GitHub workflow logs for details." >&2
|
||||||
|
exit 1
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- 'master'
|
- 'master'
|
||||||
- 'pico-3.0'
|
- 'pico-3.0'
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
pull_request: {}
|
workflow_call: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user