Преглед на файлове

CI: Add bouncer step to PR testing

Daniel Rudolf преди 2 години
родител
ревизия
efa51f66b1
променени са 2 файла, в които са добавени 28 реда и са изтрити 1 реда
  1. 27 0
      .github/workflows/test-pr.yml
  2. 1 1
      .github/workflows/test.yml

+ 27 - 0
.github/workflows/test-pr.yml

@@ -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

+ 1 - 1
.github/workflows/test.yml

@@ -6,7 +6,7 @@ on:
             - 'master'
             - 'pico-3.0'
         tags: [ 'v*.*.*' ]
-    pull_request: {}
+    workflow_call: {}
 
 jobs:
     test: