Skip to content

Commit

Permalink
Unit tests with Drupal 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Aug 28, 2024
1 parent b5defd8 commit 32a0d1e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,38 @@ jobs:
with:
name: unit-tests-results
path: /var/www/html/artifacts
phpunit_d11:
name: Drupal 11 PHPUnit Coverage Tests
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:latest
services:
mysql:
image: mysql:5.7
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
path: /var/www/html/artifacts
# acceptance:
# name: Codeception Acceptance Tests
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 32a0d1e

Please sign in to comment.