Ver código fonte

:octocat: require successful static code analysis before test run

smiley 2 anos atrás
pai
commit
d8c9a1e881
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5 1
      .github/workflows/tests.yml

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

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