Skip to content

Commit

Permalink
Test on php8.0, fixed to use correct phpunit.xml file, fixed phpcs path
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed May 21, 2021
1 parent 5c70d92 commit 1d80c0c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 1d80c0c

Please sign in to comment.