Skip to content

Commit cfa1c4f

Browse files
committed
Job naming + reset caches
1 parent ab9e0aa commit cfa1c4f

File tree

1 file changed

+24
-35
lines changed

1 file changed

+24
-35
lines changed

.github/workflows/reusable-CI-workflow.yml

Lines changed: 24 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ env:
4444

4545
jobs:
4646
tests:
47-
name: PHP ${{ matrix.php-version }} & Symfony ${{ matrix.symfony-version }}
47+
name: ${{ matrix.job-name }}
4848
runs-on: ubuntu-latest
4949
env:
5050
COVERAGE_TYPE: none
@@ -54,28 +54,24 @@ jobs:
5454
max-parallel: 4
5555
matrix:
5656
include:
57-
# Up to date versions => Highest versions allowed by composer config
58-
- php-version: '${{ inputs.php-max-version }}'
57+
- job-name: Up to date versions # => Highest versions allowed by composer config
58+
php-version: '${{ inputs.php-max-version }}'
5959
symfony-version: '${{ inputs.symfony-max-version }}'
60-
## Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
61-
pkg-extra-constraints: behat/gherkin:~4.12.0
62-
# Bare minimum => Lowest versions allowed by composer config
63-
- php-version: '${{ inputs.php-min-version }}'
60+
- job-name: Up to date versions - Special case - Symfony 5.4
61+
php-version: '${{ inputs.php-max-version }}'
62+
symfony-version: '5.4'
63+
- job-name: Late migration - Symfony # => Lowest symfony version with highest php version allowed by composer config
64+
php-version: '${{ inputs.php-max-version }}'
6465
symfony-version: '${{ inputs.symfony-min-version }}'
65-
# Late symfony migration => Lowest symfony version with highest php version allowed by composer config
66-
- php-version: '${{ inputs.php-max-version }}'
66+
- job-name: Bare minimum # => Lowest versions allowed by composer config
67+
php-version: '${{ inputs.php-min-version }}'
6768
symfony-version: '${{ inputs.symfony-min-version }}'
68-
## Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
69-
pkg-extra-constraints: behat/gherkin:~4.12.0
70-
# Late php migration => Highest symfony version with lowest php version allowed by composer config
71-
- php-version: '${{ inputs.php-min-version }}'
72-
symfony-version: '${{ inputs.symfony-max-version }}'
73-
# Special case - Sf 5.4 with highest php version
74-
- php-version: '${{ inputs.php-max-version }}'
75-
symfony-version: '5.4'
76-
# Special case - Sf 5.4 with lowest php version
77-
- php-version: '${{ inputs.php-min-version }}'
69+
- job-name: Bare minimum - Special case - Symfony 5.4
70+
php-version: '${{ inputs.php-min-version }}'
7871
symfony-version: '5.4'
72+
- job-name: Late migration - Php # => Highest symfony version with lowest php version allowed by composer config
73+
php-version: '${{ inputs.php-min-version }}'
74+
symfony-version: '${{ inputs.symfony-max-version }}'
7975
steps:
8076
- name: Check out code
8177
uses: actions/checkout@v4
@@ -214,7 +210,7 @@ jobs:
214210
uses: actions/dependency-review-action@v4
215211

216212
nightly-tests:
217-
name: Nightly - PHP ${{ matrix.php-version }} & Symfony ${{ matrix.symfony-version }}
213+
name: ${{ matrix.job-name }}
218214
runs-on: ubuntu-latest
219215
env:
220216
COMPOSER_IGNORE_PLATFORM_REQ: 'php+'
@@ -225,25 +221,18 @@ jobs:
225221
max-parallel: 4
226222
matrix:
227223
include:
228-
# PHP upgrade - With highest dependencies versions => Highest supported symfony version against next php version
229-
- php-version: ${{ inputs.php-next-version }}
224+
- job-name: PHP Nightly - With highest supported symfony versions
225+
php-version: ${{ inputs.php-next-version }}
230226
symfony-version: ${{ inputs.symfony-max-version }}
231-
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
232-
pkg-extra-constraints: behat/gherkin:~4.12.0
233-
# PHP upgrade - With lowest dependencies versions => Lowest supported symfony version against next php version
234-
- php-version: ${{ inputs.php-next-version }}
227+
- job-name: PHP Nightly - With lowest supported symfony versions
228+
php-version: ${{ inputs.php-next-version }}
235229
symfony-version: ${{ inputs.symfony-min-version }}
236-
# Fix - behat/gherkin => Avoid issue with behat <-> gherkin packages (See https://github.com/Behat/Gherkin/issues/317)
237-
# Fix - matthiasnoback/symfony-config-test => Avoid issue with phpunit <-> symfony-config-test packages
238-
pkg-extra-constraints: behat/gherkin:~4.12.0 matthiasnoback/symfony-config-test:^4.3
239-
# Symfony upgrade - With highest php version => Next symfony version against highest supported PHP version
240-
- php-version: ${{ inputs.php-max-version }}
230+
- job-name: Symfony Nightly - With highest supported php version
231+
php-version: ${{ inputs.php-max-version }}
241232
symfony-version: ${{ inputs.symfony-next-version }}
242-
pkg-extra-constraints: behat/gherkin:~4.12.0
243-
# Symfony upgrade - With lowest php version => Next symfony version against lowest supported PHP version
244-
- php-version: ${{ inputs.php-min-version > 8.1 && inputs.php-min-version || '8.1' }} # Fix - Sf 6.3 (current next) require php 8.1 minimum !
233+
- job-name: Symfony Nightly - With lowest supported php version
234+
php-version: ${{ inputs.php-min-version > 8.1 && inputs.php-min-version || '8.1' }} # Fix - Sf 6.3 (current next) require php 8.1 minimum !
245235
symfony-version: ${{ inputs.symfony-next-version }}
246-
pkg-extra-constraints: behat/gherkin:~4.12.0
247236

248237
steps:
249238
- name: Check out code

0 commit comments

Comments
 (0)