From 3dd81c40e5aef6fb08c9b23fece7bcc0849405a1 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Thu, 5 Jan 2023 22:34:31 +0100 Subject: [PATCH] CI: Add bouncer step to PR testing --- .github/workflows/test-pr.yml | 27 +++++++++++++++++++++++++++ .github/workflows/test.yml | 1 - 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-pr.yml diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml new file mode 100644 index 000000000..24e48370e --- /dev/null +++ b/.github/workflows/test-pr.yml @@ -0,0 +1,27 @@ +name: Pull Request testing + +on: + pull_request: {} + +jobs: + test: + name: Test Pico CMS + uses: ./.github/workflows/test.yml + + bouncer: + name: Test Pico CMS + + 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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bddc9a93c..094805c2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,7 +6,6 @@ on: - 'master' - 'pico-3.0' tags: [ 'v*.*.*' ] - pull_request: {} jobs: test: