File tree Expand file tree Collapse file tree 2 files changed +51
-12
lines changed Expand file tree Collapse file tree 2 files changed +51
-12
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : PHPUnit Tests, via ddev
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ PHPUnit :
11+ strategy :
12+ matrix :
13+ drupal-version :
14+ - ' ^10.2'
15+ # - '^10.3'
16+ php-version :
17+ - ' 8.3'
18+ # - '8.4'
19+ experimental :
20+ - false
21+ database :
22+ - postgres:12
23+ # include:
24+ # - drupal-version: '^11'
25+ # php-version: '8.4'
26+ # experimental: true
27+ # database: postgres:16
28+ name : Drupal ${{ matrix.drupal-version }} | PHP ${{ matrix.php-version }} | DB ${{ matrix.database }}
29+ continue-on-error : ${{ matrix.experimental }}
30+ steps :
31+ - name : Checkout code
32+ uses : actions/checkout@v5
33+ - name : Setup DDEV
34+ uses : ddev/github-action-setup-ddev@v1
35+
36+ - name : Project setup
37+ run : |
38+ set -e
39+ ddev config --project-type=drupal --docroot=web --php-version=${{ matrix.php-version }} --corepack-enable --database ${{ matrix.database }}
40+ ddev add-on get ddev/ddev-drupal-contrib
41+ ddev start
42+ ddev core-version ${{ matrix.drupal-version }}
43+ ddev poser
44+ ddev symlink-project
45+ ddev config --update
46+ ddev restart
47+
48+ - name : Run tests
49+ run : |
50+ set -e
51+ ddev phpunit
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments