From 1d80c0c8a0e92570d189d15cb92c483a8ebadc8a Mon Sep 17 00:00:00 2001 From: tuutti Date: Fri, 21 May 2021 11:53:23 +0300 Subject: [PATCH] Test on php8.0, fixed to use correct phpunit.xml file, fixed phpcs path --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00369dd..320a7c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,15 @@ name: CI env: SIMPLETEST_DB: "mysql://drupal:drupal@db:3306/drupal" SIMPLETEST_BASE_URL: "http://127.0.0.1:8080" - DRUPAL_CORE: 9.0.x MODULE_NAME: helfi_tunnistamo jobs: tests: runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.4', '8.0'] container: - image: ghcr.io/city-of-helsinki/drupal-php-docker:7.4 + image: ghcr.io/city-of-helsinki/drupal-php-docker:${{ matrix.php-versions }} services: db: @@ -37,11 +39,11 @@ jobs: - name: Run PHPCS run: | cd $DRUPAL_ROOT - vendor/bin/phpcs public/modules/custom/ --standard=Drupal + vendor/bin/phpcs public/modules/contrib/$MODULE_NAME --standard=Drupal - name: Run PHPUnit tests run: | cd $DRUPAL_ROOT vendor/bin/drush runserver $SIMPLETEST_BASE_URL > /dev/null 2>&1 & chromedriver --port=4444 > /dev/null 2>&1 & - vendor/bin/phpunit -c $DRUPAL_ROOT/phpunit.xml.dist --verbose --group $MODULE_NAME + vendor/bin/phpunit -c $DRUPAL_ROOT/phpunit.platform.xml --verbose --group $MODULE_NAME