浏览代码

:octocat: require successful static code analysis before test run

smiley 2 年之前
父节点
当前提交
d8c9a1e881
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/tests.yml

+ 5 - 1
.github/workflows/tests.yml

@@ -19,7 +19,7 @@ jobs:
     runs-on: ubuntu-latest
 
     strategy:
-      fail-fast: false
+      fail-fast: true
       matrix:
         php-version:
           - "7.4"
@@ -49,6 +49,7 @@ jobs:
       - name: "Run phan"
         run: php vendor/bin/phan
 
+
   build-docs:
     name: "Build and publish Docs"
 
@@ -78,9 +79,12 @@ jobs:
           folder: docs
           clean: true
 
+
   tests:
     name: "Unit Tests"
 
+    needs: static-code-analysis
+
     runs-on: ${{ matrix.os }}
 
     strategy: