@@ -18,72 +18,70 @@ jobs:
18
18
fail-fast : false
19
19
matrix :
20
20
include :
21
- - name : test-php-8.2-d10-legacy
22
- php-version : 8.2
21
+ - php-version : 8.2
23
22
drupal-version : 10.2
23
+ channel : legacy
24
24
25
- - name : test-php-8.2-d10-stable
26
- php-version : 8.2
25
+ - php-version : 8.2
27
26
drupal-version : 10.3
27
+ channel : stable
28
28
29
- - name : test-php-8.2-d10-canary
30
- php-version : 8.2
29
+ - php-version : 8.2
31
30
drupal-version : 10.4@beta
32
- stability : canary
31
+ channel : canary
33
32
34
- - name : test-php-8.3-d10-legacy
35
- php-version : 8.3
33
+ - php-version : 8.3
36
34
drupal-version : 10.2
35
+ channel : legacy
37
36
38
- - name : test-php-8.3-d10-stable
39
- php-version : 8.3
37
+ - php-version : 8.3
40
38
drupal-version : 10.3
39
+ channel : stable
41
40
42
- - name : test-php-8.3-d10-canary
43
- php-version : 8.3
41
+ - php-version : 8.3
44
42
drupal-version : 10.4@beta
45
- stability : canary
43
+ channel : canary
46
44
47
- - name : test-php-8.4-d10-legacy
48
- php-version : 8.4
45
+ - php-version : 8.4
49
46
drupal-version : 10.3 # Lowest Drupal version that supports PHP 8.4.
47
+ channel : legacy
50
48
51
- - name : test-php-8.4-d10-stable
52
- php-version : 8.4
49
+ - php-version : 8.4
53
50
drupal-version : 10.3
51
+ channel : stable
54
52
55
- - name : test-php-8.4-d10-canary
56
- php-version : 8.4
53
+ - php-version : 8.4
57
54
drupal-version : 10.4@beta
58
- stability : canary
55
+ channel : canary
59
56
60
- - name : test- php-8.3-d11-legacy
61
- php -version : 8.3
62
- drupal-version : 11.0 # Lowest Drupal version that exists.
57
+ - php-version : 8.3
58
+ drupal -version : 11.0 # Lowest Drupal 11 version that exists.
59
+ channel : legacy
63
60
64
- - name : test-php-8.3-d11-stable
65
- php-version : 8.3
61
+ - php-version : 8.3
66
62
drupal-version : 11.0
63
+ channel : stable
67
64
68
- - name : test-php-8.3-d11-canary
69
- php-version : 8.3
65
+ - php-version : 8.3
70
66
drupal-version : 11@beta
71
- stability : canary
67
+ channel : canary
72
68
73
- - name : test- php-8.4-d11-legacy
74
- php -version : 8.4
75
- drupal-version : 11.0 # Lowest Drupal version that exists.
69
+ - php-version : 8.4
70
+ drupal -version : 11.0 # Lowest Drupal 11 version that exists.
71
+ channel : legacy
76
72
77
- - name : test-php-8.4-d11-stable
78
- php-version : 8.4
73
+ - php-version : 8.4
79
74
drupal-version : 11.0
75
+ channel : stable
80
76
81
- - name : test-php-8.4-d11-canary
82
- php-version : 8.4
77
+ - php-version : 8.4
83
78
drupal-version : 11@beta
84
- stability : canary
79
+ channel : canary
80
+
81
+ name : php-${{ matrix.php-version }}-drupal-${{ format(matrix.drupal-version, '@', '-') }}-${{ matrix.channel }}
85
82
86
83
env :
84
+ JOB_NAME : php-${{ matrix.php-version }}-drupal-${{ format(matrix.drupal-version, '@', '-') }}-${{ matrix.channel }}
87
85
DRUPAL_VERSION : ${{ matrix.drupal-version }}
88
86
89
87
steps :
@@ -129,7 +127,7 @@ jobs:
129
127
- name : Lint code with PHPStan
130
128
working-directory : build
131
129
run : vendor/bin/phpstan || [ "${CI_PHPSTAN_IGNORE_FAILURE:-0}" -eq 1 ]
132
- continue-on-error : ${{ matrix.stability == 'canary' }} # PHPStan levels for canary releases are not the same as for this project.
130
+ continue-on-error : ${{ matrix.channel == 'canary' }} # PHPStan levels for canary releases are not the same as for this project.
133
131
134
132
- name : Lint code with Rector
135
133
working-directory : build
@@ -154,13 +152,13 @@ jobs:
154
152
- name : Upload test results as an artifact
155
153
uses : actions/upload-artifact@v4
156
154
with :
157
- name : Artifacts (${{ matrix.name }})
155
+ name : Artifacts (${{ env.JOB_NAME }})
158
156
path : build/web/sites/simpletest/browser_output
159
157
160
158
- name : Upload coverage report as an artifact
161
159
uses : actions/upload-artifact@v4
162
160
with :
163
- name : ${{github.job}}-code-coverage-report-${{ matrix.name }}
161
+ name : ${{github.job}}-code-coverage-report-${{ env.JOB_NAME }}
164
162
path : ./.logs/coverage/phpunit/.coverage-html
165
163
include-hidden-files : true
166
164
if-no-files-found : error
0 commit comments