Browse Source

Try matrix builds for PHP 7.1 and PHP 7.2

Lacey Sanderson 4 years ago
parent
commit
dc4c715865
1 changed files with 7 additions and 1 deletions
  1. 7 1
      .github/workflows/phpunit-tests.yml

+ 7 - 1
.github/workflows/phpunit-tests.yml

@@ -5,6 +5,12 @@ 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"
@@ -41,7 +47,7 @@ jobs:
       - name: Setup PHP
         uses: shivammathur/setup-php@v2
         with:
-          php-version: '7.2'
+          php-version: ${{ matrix.php-versions }}
           # Install extensions for PHP-PostgreSQL
           extensions: mbstring, intl, php-pgsql, php-gd, php-xml
           # Increase memory limit to 2G