Skip to content

Commit ff25ba6

Browse files
authored
Workflow updates for Drupal 11 tests
2 parents de90268 + c294d2c commit ff25ba6

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/php.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: test_and_lint
22
env:
33
SIMPLETEST_DB: "sqlite://localhost//tmp/test.sqlite"
4-
SIMPLETEST_BASE_URL: "http://127.0.0.1:8000"
4+
SIMPLETEST_BASE_URL: "http://127.0.0.1:8000"
55
APIGEE_EDGE_AUTH_TYPE: ${{ secrets.APIGEE_EDGE_AUTH_TYPE }}
66
APIGEE_EDGE_ORGANIZATION: ${{ secrets.APIGEE_EDGE_ORGANIZATION }}
77
APIGEE_EDGE_USERNAME: ${{ secrets.APIGEE_EDGE_USERNAME }}
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
build:
2424

25-
runs-on: ubuntu-latest
25+
runs-on: ubuntu-24.04
2626

2727
name: "PHP ${{ matrix.php-version }} | Drupal ${{ matrix.drupal-core }}"
2828
strategy:
@@ -34,8 +34,13 @@ jobs:
3434
- "8.3"
3535
drupal-core:
3636
# Should update the following as the minimum supported version from Drupal.org
37-
- "10.2.x"
3837
- "10.3.x"
38+
- "11.1.x"
39+
exclude:
40+
- php-version: "8.1"
41+
drupal-core: "11.1.x"
42+
- php-version: "8.2"
43+
drupal-core: "11.1.x"
3944

4045
steps:
4146

@@ -51,7 +56,7 @@ jobs:
5156
coverage: "xdebug"
5257
php-version: "${{ matrix.php-version }}"
5358
tools: composer:v2
54-
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv, opcache, imagick
59+
extensions: date, dom, filter, hash, json, curl, libxml, mbstring, zip, pdo, sqlite3, mysqli, mysql, pdo_mysql, bcmath, gd, exif, iconv, opcache, imagick, openssl
5560

5661
- name: Checkout Drupal core
5762
run: |
@@ -111,17 +116,17 @@ jobs:
111116
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
112117
113118
- name: "Run PHPUnit Tests"
114-
if: ${{ matrix.drupal-core != '10.2.x' || matrix.php-version != '8.2' }}
119+
if: ${{ matrix.drupal-core != '10.3.x' || matrix.php-version != '8.2' }}
115120
run: |
116121
cd drupal
117-
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript modules/contrib/apigee_api_catalog
122+
vendor/bin/phpunit -c core --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript modules/contrib/apigee_api_catalog
118123
119124
- name: "Run PHPUnit Tests with Code Coverage"
120-
if: ${{ matrix.drupal-core == '10.2.x' && matrix.php-version == '8.2' }}
125+
if: ${{ matrix.drupal-core == '10.3.x' && matrix.php-version == '8.2' }}
121126
run: |
122127
cd drupal
123128
cp modules/contrib/apigee_api_catalog/phpunit.core.xml.dist core/phpunit.xml
124-
vendor/bin/phpunit -c core --verbose --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript --coverage-clover /tmp/coverage.xml modules/contrib/apigee_api_catalog
129+
vendor/bin/phpunit -c core --color --group apigee_api_catalog --testsuite unit,kernel,functional,functional-javascript --coverage-clover /tmp/coverage.xml modules/contrib/apigee_api_catalog
125130
126131
- name: Artifacts
127132
if: failure()
@@ -131,7 +136,7 @@ jobs:
131136
path: drupal/sites/simpletest/browser_output/*
132137

133138
- name: Upload Coverage to Codecov
134-
if: ${{ matrix.drupal-core == '10.2.x' && matrix.php-version == '8.2' }}
139+
if: ${{ matrix.drupal-core == '10.3.x' && matrix.php-version == '8.2' }}
135140
uses: codecov/codecov-action@v4
136141
with:
137142
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)