Skip to content

Commit 0df3125

Browse files
committed
Add testing for PHP 7.4
1 parent b826836 commit 0df3125

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ on:
77
jobs:
88
phpunit:
99
runs-on: ubuntu-18.04
10+
strategy:
11+
matrix:
12+
php-versions: ["7.3", "7.4"]
13+
name: phpunit on PHP ${{ matrix.php-versions }}
1014
env:
1115
DB_DATABASE: drupal
1216
DB_USER: root
1317
DB_PASSWORD: root
1418
steps:
1519
- uses: actions/checkout@v2
16-
- name: "Setup PHP 7.3"
20+
- name: Setup PHP ${{ matrix.php-versions }}
1721
uses: shivammathur/setup-php@v2
1822
with:
19-
php-version: "7.3"
23+
php-version: ${{ matrix.php-versions }}
2024
- name: Start MySQL
2125
run: |
2226
sudo systemctl start mysql
@@ -40,10 +44,10 @@ jobs:
4044
run: |
4145
mkdir -p $COMPOSER_HOME
4246
cd $COMPOSER_HOME
43-
composer require drush/drush:8.1.* phpunit/phpunit:^8 torotil/upal:2.0.0-RC1 stripe/stripe-php:7.27.2
47+
composer require drush/drush:8.3.* phpunit/phpunit:^8 torotil/upal:2.0.0-RC1
4448
- name: Bootstrap drupal
4549
run: |
46-
php -d sendmail_path=`which true` $COMPOSER_HOME/vendor/bin/drush.php --yes core-quick-drupal --core=drupal-7.69 --profile=testing --no-server --db-url=mysql://${{ env.DB_USER }}:${{ env.DB_PASSWORD }}@127.0.0.1:3306/${{ env.DB_DATABASE }} --root=$ROOT
50+
php -d sendmail_path=`which true` $COMPOSER_HOME/vendor/bin/drush.php --yes core-quick-drupal --core=drupal-7.82 --profile=testing --no-server --db-url=mysql://${{ env.DB_USER }}:${{ env.DB_PASSWORD }}@127.0.0.1:3306/${{ env.DB_DATABASE }} --root=$ROOT
4751
ln -s $REPO $ROOT/sites/all/modules/module_under_test
4852
cd $ROOT
4953
curl https://www.drupal.org/files/issues/1891356-drupal_static_reset-on-module-changes-30-D7.patch | patch -p1

0 commit comments

Comments
 (0)