Explorar el Código

Move the strategy inside the job.

Lacey Sanderson hace 4 años
padre
commit
44103fe71c
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      .github/workflows/phpunit-tests.yml

+ 6 - 6
.github/workflows/phpunit-tests.yml

@@ -5,18 +5,18 @@ name: PHPUnit Tests
 # Run this workflow every time a new commit is pushed to your repository
 on: [push, pull_request]
 
-strategy:
-  matrix:
-    php-versions: ['7.1', '7.2']
-
-name: Testing Tripal Core (PHP ${{ matrix.php-versions }})
-
 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
 jobs:
   # This workflow contains a single job called "build"
   run-tests:
     # The type of runner that the job will run on
     runs-on: ubuntu-latest
+    # Matrix Build for this job.
+    strategy:
+      matrix:
+        php-versions: ['7.1', '7.2']
+    # Name the matrix build so we can tell them apart.
+    name: PHPUnit Testing of Tripal Core (PHP ${{ matrix.php-versions }})
 
     # Service containers to run with `run-tests`
     services: