Skip to content

Commit

Permalink
Add Symfony 7.0 support and PHP 8.3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hlecorche committed Dec 24, 2023
1 parent 19d03e6 commit 5d1d3f8
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 50 deletions.
63 changes: 37 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,42 @@ jobs:
composer-flags: '--prefer-stable --prefer-lowest'
description: 'with SF 5.4.* lowest'
- php-version: '8.1'
symfony-version: '6.0.*'
symfony-version: '6.4.*'
composer-flags: '--prefer-stable --prefer-lowest'
description: 'with SF 6.0.* lowest'
- php-version: '8.1'
symfony-version: '6.1.*'
composer-flags: '--prefer-stable --prefer-lowest'
description: 'with SF 6.1.* lowest'
- php-version: '8.1'
symfony-version: '6.2.*'
composer-flags: '--prefer-stable --prefer-lowest'
description: 'with SF 6.2.* lowest'
- php-version: '8.1'
symfony-version: '6.3.*'
description: 'with SF 6.4.* lowest'
- php-version: '8.2'
symfony-version: '7.0.*'
composer-flags: '--prefer-stable --prefer-lowest'
description: 'with SF 6.3.* lowest'
description: 'with SF 7.0.* lowest'


#Symfony versions
- php-version: '8.2'
- php-version: '8.3'
symfony-version: '5.4.*'
description: 'with SF 5.4.*'
- php-version: '8.2'
symfony-version: '6.0.*'
description: 'with SF 6.0.*'
- php-version: '8.2'
symfony-version: '6.1.*'
description: 'with SF 6.1.*'
- php-version: '8.2'
symfony-version: '6.2.*'
description: 'with SF 6.2.*'
- php-version: '8.2'
symfony-version: '6.3.*'
description: 'with SF 6.3.*'
- php-version: '8.3'
symfony-version: '5.4.*@dev'
description: 'with SF 5.4.* dev'
- php-version: '8.3'
symfony-version: '6.4.*'
description: 'with SF 6.4.*'
- php-version: '8.3'
symfony-version: '6.4.*@dev'
description: 'with SF 6.4.* dev'
- php-version: '8.3'
symfony-version: '7.0.*'
description: 'with SF 7.0.*'
- php-version: '8.3'
symfony-version: '7.0.*@dev'
description: 'with SF 7.0.* dev'
- php-version: '8.3'
symfony-version: '7.1.*@dev'
description: 'with SF 7.1.* dev'

#PHP versions
- php-version: '8.1'
- php-version: '8.2'
- php-version: '8.3'

#CS
- php-version: '8.2'
Expand Down Expand Up @@ -114,6 +113,18 @@ jobs:
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.*') }}-${{ matrix.composer-flags }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: composer-${{ runner.os }}-${{ matrix.php-version }}-

- name: Configure minimum stability
if: matrix.symfony-version && contains(matrix.symfony-version, '@dev')
run: composer config minimum-stability dev

- name: Remove friendsofphp/php-cs-fixer
if: matrix.coding-standards != true
run: composer remove friendsofphp/php-cs-fixer --dev --no-update

- name: Remove vimeo/psalm
if: matrix.static-analysis != true
run: composer remove vimeo/psalm --dev --no-update

- name: Configure Symfony Flex
if: matrix.symfony-version
run: composer config extra.symfony.require ${{ matrix.symfony-version }}
Expand Down
46 changes: 23 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@
"ecommit/paginator": "^1.0",
"ecommit/scalar-values": "^1.0",
"psr/container": "^1.1|^2.0",
"symfony/asset": "^5.4|^6.0",
"symfony/config": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/doctrine-bridge": "^5.4.3|^6.0.3",
"symfony/form": "^5.4|^6.0",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/http-client": "^5.4|^6.0",
"symfony/asset": "^5.4|^6.0|^7.0",
"symfony/config": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"symfony/doctrine-bridge": "^5.4.3|^6.0.3|^7.0",
"symfony/form": "^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"symfony/http-client": "^5.4|^6.0|^7.0",
"symfony/http-client-contracts": "^2.4|^3.0",
"symfony/http-foundation": "^5.4|^6.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/intl": "^5.4|^6.0",
"symfony/options-resolver": "^5.4|^6.0",
"symfony/property-access": "^5.4|^6.0",
"symfony/routing": "^5.4|^6.0",
"symfony/security-bundle": "^5.4|^6.0",
"symfony/security-core": "^5.4|^6.0",
"symfony/security-csrf": "^5.4|^6.0",
"symfony/http-foundation": "^5.4|^6.0|^7.0",
"symfony/http-kernel": "^5.4|^6.0|^7.0",
"symfony/intl": "^5.4|^6.0|^7.0",
"symfony/options-resolver": "^5.4|^6.0|^7.0",
"symfony/property-access": "^5.4|^6.0|^7.0",
"symfony/routing": "^5.4|^6.0|^7.0",
"symfony/security-bundle": "^5.4|^6.0|^7.0",
"symfony/security-core": "^5.4|^6.0|^7.0",
"symfony/security-csrf": "^5.4|^6.0|^7.0",
"symfony/service-contracts": "^1.1.6|^2|^3",
"symfony/translation": "^5.4|^6.0",
"symfony/translation": "^5.4|^6.0|^7.0",
"symfony/translation-contracts": "^2.3|^3.0",
"symfony/twig-bridge": "^5.4|^6.0",
"symfony/twig-bundle": "^5.4|^6.0",
"symfony/validator": "^5.4|^6.0",
"symfony/twig-bridge": "^5.4|^6.0|^7.0",
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
"symfony/validator": "^5.4|^6.0|^7.0",
"twig/twig": "^2.12.0|^3.0"
},
"require-dev": {
Expand All @@ -53,10 +53,10 @@
"doctrine/doctrine-fixtures-bundle": "^3.3",
"friendsofphp/php-cs-fixer": "^3.0",
"phpunit/phpunit": "^9.0",
"symfony/dom-crawler": "^5.4|^6.0",
"symfony/dom-crawler": "^5.4|^6.0|^7.0",
"symfony/panther": "^2.0.1",
"symfony/webpack-encore-bundle": "^1.7.3",
"symfony/yaml": "^5.4|^6.0",
"symfony/webpack-encore-bundle": "^1.7.3|^2.0",
"symfony/yaml": "^5.4|^6.0|^7.0",
"vimeo/psalm": "^4.22"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion tests/Functional/App/config/security.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
security:
enable_authenticator_manager: true
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'plaintext'

Expand Down

0 comments on commit 5d1d3f8

Please sign in to comment.