Skip to content

Commit

Permalink
[CI] Fixed CI for PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon authored and chalasr committed Dec 27, 2023
1 parent 9c64665 commit 29c88f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.can-fail }}
strategy:
fail-fast: false
Expand All @@ -17,24 +17,29 @@ jobs:
symfony: 5.4.*
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
os: ubuntu-20.04
# LTS with latest stable PHP
- php: 8.3
symfony: 6.4.*
composer-flags: '--prefer-stable'
can-fail: false
os: ubuntu-latest
# Stable Symfony branches
- php: 8.2
symfony: 6.3.*
composer-flags: '--prefer-stable'
can-fail: false
os: ubuntu-latest
- php: 8.2
symfony: 6.4.*
composer-flags: '--prefer-stable'
can-fail: false
os: ubuntu-latest
- php: 8.3
symfony: 7.0.*
composer-flags: '--prefer-stable'
can-fail: false
os: ubuntu-latest

name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"php": ">=7.1",
"ext-openssl": "*",
"lcobucci/clock": "^1.2|^2.0|^3.0",
"lcobucci/jwt": "^3.4|^4.1|^5.0",
"lcobucci/jwt": "^3.4.6|^4.1|^5.0",
"namshi/jose": "^7.2",
"symfony/config": "^4.4|^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^4.4|^5.4|^6.0|^7.0",
Expand All @@ -58,7 +58,7 @@
"symfony/dom-crawler": "^5.4|^6.0|^7.0",
"symfony/filesystem": "^4.4|^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^4.4|^5.4|^6.0|^7.0",
"symfony/phpunit-bridge": "^4.4|^5.4|^6.0|^7.0",
"symfony/phpunit-bridge": "^7.0.1",
"symfony/security-guard": "^4.4|^5.4|^6.0|^7.0",
"symfony/var-dumper": "^4.4|^5.4|^6.0|^7.0",
"symfony/yaml": "^4.4|^5.4|^6.0|^7.0"
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</filter>

<php>
<env name="SYMFONY_PHPUNIT_VERSION" value="9.5"></env>
<env name="SYMFONY_MAX_PHPUNIT_VERSION" value="9.5"></env>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=27"></env>
</php>
</phpunit>

0 comments on commit 29c88f2

Please sign in to comment.