Skip to content

Commit 357a085

Browse files
authored
Merge pull request #39 from derrabus/improvement/php-8.3-symfony-7
Support Symfony 7
2 parents 7ef0c65 + 51d783a commit 357a085

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/php.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
- '7.4'
1515
- '8.0'
1616
- '8.1'
17+
- '8.2'
18+
- '8.3'
1719

1820
symfony-version:
1921
- '5.3'
@@ -27,31 +29,38 @@ jobs:
2729
symfony-version: 6.0
2830
- php-version: 7.4
2931
symfony-version: 6.0
32+
- php-version: 8.0
33+
symfony-version: 6.0
34+
35+
include:
36+
- php-version: 8.2
37+
symfony-version: 7.0
38+
- php-version: 8.3
39+
symfony-version: 7.0
3040

3141
name: PHP ${{ matrix.php-version }} and Symfony ${{ matrix.symfony-version }}
3242
steps:
33-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v4
3444

3545
- uses: shivammathur/setup-php@v2
3646
with:
3747
php-version: "${{ matrix.php-version }}"
3848
extensions: gd, zip
49+
tools: flex
3950

4051
- run: composer validate
4152

4253
- id: composer-cache
4354
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
4455

45-
- uses: actions/cache@v1
56+
- uses: actions/cache@v3
4657
with:
4758
path: ${{ steps.composer-cache.outputs.dir }}
4859
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
4960
restore-keys: ${{ runner.os }}-composer-
5061

5162
- name: Setup
52-
run: |
53-
sed -i composer.json -e 's/\^5\.3\(.[0-9]\+\)\?[|]\^6\.0/${{ matrix.symfony-version }}.*/g'
54-
make install start
63+
run: composer config extra.symfony.require ^${{ matrix.symfony-version }}
5564

5665
- name: Test
5766
run: |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": "^7.2|^8.0",
1717
"ext-mbstring": "*",
18-
"symfony/process": "^5.3|^6.0",
18+
"symfony/process": "^5.3|^6.0|^7.0",
1919
"symfony/polyfill-php80": "^1.10"
2020
},
2121
"require-dev": {

0 commit comments

Comments
 (0)