1
1
name : test_and_lint
2
2
env :
3
3
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"
5
5
APIGEE_EDGE_AUTH_TYPE : ${{ secrets.APIGEE_EDGE_AUTH_TYPE }}
6
6
APIGEE_EDGE_ORGANIZATION : ${{ secrets.APIGEE_EDGE_ORGANIZATION }}
7
7
APIGEE_EDGE_USERNAME : ${{ secrets.APIGEE_EDGE_USERNAME }}
22
22
jobs :
23
23
build :
24
24
25
- runs-on : ubuntu-latest
25
+ runs-on : ubuntu-24.04
26
26
27
27
name : " PHP ${{ matrix.php-version }} | Drupal ${{ matrix.drupal-core }}"
28
28
strategy :
34
34
- " 8.3"
35
35
drupal-core :
36
36
# Should update the following as the minimum supported version from Drupal.org
37
- - " 10.2.x"
38
37
- " 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"
39
44
40
45
steps :
41
46
51
56
coverage : " xdebug"
52
57
php-version : " ${{ matrix.php-version }}"
53
58
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
55
60
56
61
- name : Checkout Drupal core
57
62
run : |
@@ -111,17 +116,17 @@ jobs:
111
116
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
112
117
113
118
- 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' }}
115
120
run : |
116
121
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
118
123
119
124
- 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' }}
121
126
run : |
122
127
cd drupal
123
128
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
125
130
126
131
- name : Artifacts
127
132
if : failure()
@@ -131,7 +136,7 @@ jobs:
131
136
path : drupal/sites/simpletest/browser_output/*
132
137
133
138
- 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' }}
135
140
uses : codecov/codecov-action@v4
136
141
with :
137
142
token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments