Skip to content

Commit

Permalink
Test in Symfony 6 & 7
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrjones committed Jun 24, 2024
1 parent 2cf2003 commit d2c842c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ jobs:

strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
php: ['8.1', '8.2', '8.3']
symfony: ['6.4', '7.1']

runs-on: ubuntu-latest

name: On PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}

steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
Expand All @@ -27,11 +30,9 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
php-version: ${{ matrix.php }}
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180

- name: Check PHP version
run: php -v

- name: Validate composer.json and composer.lock
Expand All @@ -40,6 +41,12 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Install Symfony ${{ matrix.symfony }} packages
run: |
composer update symfony/http-foundation:${{ matrix.symfony }} --no-update
composer update symfony/yaml:${{ matrix.symfony }} --no-update
if: matrix.symfony != 7.1

- name: Lint PHP files
run: |
curl -Ls https://github.com/overtrue/phplint/releases/latest/download/phplint.phar -o /usr/local/bin/phplint
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"psr/simple-cache": "^3.0",
"masterminds/html5": "^2.9",
"strata/data": "dev-feature/php8",
"symfony/http-foundation": "^6.4",
"symfony/yaml": "^6.4",
"symfony/http-foundation": "^6.4|^7.1",
"symfony/yaml": "^6.4|^7.1",
"toflar/psr6-symfony-http-cache-store": "^4.0"
},
"autoload": {
Expand Down

0 comments on commit d2c842c

Please sign in to comment.