Skip to content

Commit bcdb85d

Browse files
committed
updated gha names
1 parent 01e8988 commit bcdb85d

File tree

1 file changed

+38
-40
lines changed

1 file changed

+38
-40
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,72 +18,70 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- name: test-php-8.2-d10-legacy
22-
php-version: 8.2
21+
- php-version: 8.2
2322
drupal-version: 10.2
23+
channel: legacy
2424

25-
- name: test-php-8.2-d10-stable
26-
php-version: 8.2
25+
- php-version: 8.2
2726
drupal-version: 10.3
27+
channel: stable
2828

29-
- name: test-php-8.2-d10-canary
30-
php-version: 8.2
29+
- php-version: 8.2
3130
drupal-version: 10.4@beta
32-
stability: canary
31+
channel: canary
3332

34-
- name: test-php-8.3-d10-legacy
35-
php-version: 8.3
33+
- php-version: 8.3
3634
drupal-version: 10.2
35+
channel: legacy
3736

38-
- name: test-php-8.3-d10-stable
39-
php-version: 8.3
37+
- php-version: 8.3
4038
drupal-version: 10.3
39+
channel: stable
4140

42-
- name: test-php-8.3-d10-canary
43-
php-version: 8.3
41+
- php-version: 8.3
4442
drupal-version: 10.4@beta
45-
stability: canary
43+
channel: canary
4644

47-
- name: test-php-8.4-d10-legacy
48-
php-version: 8.4
45+
- php-version: 8.4
4946
drupal-version: 10.3 # Lowest Drupal version that supports PHP 8.4.
47+
channel: legacy
5048

51-
- name: test-php-8.4-d10-stable
52-
php-version: 8.4
49+
- php-version: 8.4
5350
drupal-version: 10.3
51+
channel: stable
5452

55-
- name: test-php-8.4-d10-canary
56-
php-version: 8.4
53+
- php-version: 8.4
5754
drupal-version: 10.4@beta
58-
stability: canary
55+
channel: canary
5956

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
6360

64-
- name: test-php-8.3-d11-stable
65-
php-version: 8.3
61+
- php-version: 8.3
6662
drupal-version: 11.0
63+
channel: stable
6764

68-
- name: test-php-8.3-d11-canary
69-
php-version: 8.3
65+
- php-version: 8.3
7066
drupal-version: 11@beta
71-
stability: canary
67+
channel: canary
7268

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
7672

77-
- name: test-php-8.4-d11-stable
78-
php-version: 8.4
73+
- php-version: 8.4
7974
drupal-version: 11.0
75+
channel: stable
8076

81-
- name: test-php-8.4-d11-canary
82-
php-version: 8.4
77+
- php-version: 8.4
8378
drupal-version: 11@beta
84-
stability: canary
79+
channel: canary
80+
81+
name: php-${{ matrix.php-version }}-drupal-${{ format(matrix.drupal-version, '@', '-') }}-${{ matrix.channel }}
8582

8683
env:
84+
JOB_NAME: php-${{ matrix.php-version }}-drupal-${{ format(matrix.drupal-version, '@', '-') }}-${{ matrix.channel }}
8785
DRUPAL_VERSION: ${{ matrix.drupal-version }}
8886

8987
steps:
@@ -129,7 +127,7 @@ jobs:
129127
- name: Lint code with PHPStan
130128
working-directory: build
131129
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.
133131

134132
- name: Lint code with Rector
135133
working-directory: build
@@ -154,13 +152,13 @@ jobs:
154152
- name: Upload test results as an artifact
155153
uses: actions/upload-artifact@v4
156154
with:
157-
name: Artifacts (${{ matrix.name }})
155+
name: Artifacts (${{ env.JOB_NAME }})
158156
path: build/web/sites/simpletest/browser_output
159157

160158
- name: Upload coverage report as an artifact
161159
uses: actions/upload-artifact@v4
162160
with:
163-
name: ${{github.job}}-code-coverage-report-${{ matrix.name }}
161+
name: ${{github.job}}-code-coverage-report-${{ env.JOB_NAME }}
164162
path: ./.logs/coverage/phpunit/.coverage-html
165163
include-hidden-files: true
166164
if-no-files-found: error

0 commit comments

Comments
 (0)