Преглед на файлове

Try matrix builds for PHP 7.1 and PHP 7.2

Lacey Sanderson преди 4 години
родител
ревизия
dc4c715865
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  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