Skip to content

Commit ca1c894

Browse files
authored
Merge pull request #3071 from stof/update_ci
Update the CI setup
2 parents 05480c5 + bcf3712 commit ca1c894

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/ci.yaml

+15-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- master
88
- 2.x
9+
- 3.x
910

1011
jobs:
1112
run:
@@ -18,6 +19,7 @@ jobs:
1819
- '8.0'
1920
- '8.1'
2021
- '8.2'
22+
- '8.3'
2123
symfony-versions: [false]
2224
include:
2325
- description: 'Symfony 4.*'
@@ -26,26 +28,34 @@ jobs:
2628
- description: 'Symfony 5.*'
2729
php: '8.1'
2830
symfony-versions: '^5.4'
31+
- description: 'Symfony 6.*'
32+
php: '8.2'
33+
symfony-versions: '^6.4'
2934
name: PHP ${{ matrix.php }} ${{ matrix.description }}
3035
steps:
3136
- name: Checkout
32-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3338

34-
- uses: actions/cache@v3
39+
- uses: actions/cache@v4
3540
with:
3641
path: ~/.composer/cache/files
37-
key: ${{ matrix.php }}-${{ matrix.symfony-versions }}
42+
key: composer-${{ matrix.php }}-${{ matrix.symfony-versions }}-${{ hashFiles('composer.json') }}
43+
restore-keys: |
44+
composer-${{ matrix.php }}-
45+
composer-
3846
3947
- name: Setup PHP
4048
uses: shivammathur/setup-php@v2
4149
with:
4250
php-version: ${{ matrix.php }}
4351

44-
- name: Install dependencies
45-
run: composer require "symfony/symfony:${{ matrix.symfony-versions }}" --no-update
52+
- name: Install symfony/flex
53+
run: composer config --global --no-plugins allow-plugins.symfony/flex true && composer global require symfony/flex
4654
if: matrix.symfony-versions
4755

4856
- name: Install dependencies
57+
env:
58+
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
4959
run: composer install
5060

5161
- name: Install PHPUnit

0 commit comments

Comments
 (0)