Skip to content

Commit

Permalink
Merge pull request #39 from derrabus/improvement/php-8.3-symfony-7
Browse files Browse the repository at this point in the history
Support Symfony 7
  • Loading branch information
Pierstoval committed Dec 18, 2023
2 parents 7ef0c65 + 51d783a commit 357a085
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'

symfony-version:
- '5.3'
Expand All @@ -27,31 +29,38 @@ jobs:
symfony-version: 6.0
- php-version: 7.4
symfony-version: 6.0
- php-version: 8.0
symfony-version: 6.0

include:
- php-version: 8.2
symfony-version: 7.0
- php-version: 8.3
symfony-version: 7.0

name: PHP ${{ matrix.php-version }} and Symfony ${{ matrix.symfony-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
extensions: gd, zip
tools: flex

- run: composer validate

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

- uses: actions/cache@v1
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

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

- name: Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require": {
"php": "^7.2|^8.0",
"ext-mbstring": "*",
"symfony/process": "^5.3|^6.0",
"symfony/process": "^5.3|^6.0|^7.0",
"symfony/polyfill-php80": "^1.10"
},
"require-dev": {
Expand Down

0 comments on commit 357a085

Please sign in to comment.