]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Add GitHub Action gate/check (#5492)
authorSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Sat, 7 Jan 2023 14:54:59 +0000 (15:54 +0100)
committerGitHub <noreply@github.com>
Sat, 7 Jan 2023 14:54:59 +0000 (18:54 +0400)
.github/workflows/test.yml

index ddc43c942b5581e006ee6e41ee8da392d761a876..1235516d331d1c54cc7c38a2458cd8aab1b47617 100644 (file)
@@ -75,3 +75,19 @@ jobs:
         with:
           name: coverage-html
           path: htmlcov
+
+  # https://github.com/marketplace/actions/alls-green#why
+  check:  # This job does nothing and is only used for the branch protection
+
+    if: always()
+
+    needs:
+      - coverage-combine
+
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Decide whether the needed jobs succeeded or failed
+        uses: re-actors/alls-green@release/v1
+        with:
+          jobs: ${{ toJSON(needs) }}