Skip to content

Commit

Permalink
Run tests with Drupal 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Aug 29, 2024
1 parent 87ba04a commit ba5c5b9
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: PHPUnit and Acceptance Tests
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpunit:
name: PHPUnit Coverage Tests
Expand All @@ -8,7 +11,7 @@ jobs:
image: pookmish/drupal8ci:latest
services:
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
Expand All @@ -18,7 +21,7 @@ jobs:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
path: project
- name: Build project
Expand All @@ -28,7 +31,39 @@ jobs:
composer global require su-sws/stanford-caravan:10.x-dev
~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage
- name: Save Test Results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
if: failure()
with:
name: unit-tests-results
path: /var/www/html/artifacts
phpunit_d11:
name: PHPUnit Coverage Tests
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:php8.3
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
with:
path: project
- name: Build project
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
composer global require su-sws/stanford-caravan:11.x-dev
~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage
- name: Save Test Results
uses: actions/upload-artifact@v3
if: failure()
with:
name: unit-tests-results
Expand All @@ -46,7 +81,7 @@ jobs:
# options: '--network-alias drupal8ci'
# services:
# mysql:
# image: mysql:5.7
# image: mysql:8.0
# env:
# MYSQL_DATABASE: drupal
# MYSQL_USER: drupal
Expand All @@ -61,7 +96,7 @@ jobs:
# path: project
# - name: Run tests
# run: |
# composer global require su-sws/stanford-caravan:10.x-dev
# composer global require su-sws/stanford-caravan:11.x-dev
# ~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=acceptance
# - name: Save Test Results
# uses: actions/upload-artifact@v3
Expand All @@ -85,7 +120,7 @@ jobs:
# image: selenium/standalone-chrome
# options: '--shm-size="2g"'
# mysql:
# image: mysql:5.7
# image: mysql:8.0
# env:
# MYSQL_DATABASE: drupal
# MYSQL_USER: drupal
Expand All @@ -100,7 +135,7 @@ jobs:
# path: project
# - name: Run tests
# run: |
# composer global require su-sws/stanford-caravan:10.x-dev
# composer global require su-sws/stanford-caravan:11.x-dev
# ~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional
# - name: Save Test Results
# uses: actions/upload-artifact@v3
Expand Down

0 comments on commit ba5c5b9

Please sign in to comment.