Skip to content

Commit 24d1bc2

Browse files
committed
Reduce size of matrix, while testing.
1 parent e1e1c84 commit 24d1bc2

File tree

2 files changed

+51
-12
lines changed

2 files changed

+51
-12
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

.github/workflows/phpunit.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)