Skip to content

Commit

Permalink
Update symfony version (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Dec 24, 2023
1 parent 3319edc commit fb1d7ae
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@
*.ttf -text diff
*.woff -text diff
*.woff2 -text diff

# Exclude directories/files from composer vendor package
/tests export-ignore
/.* export-ignore
/php*.json export-ignore
/php*.xml export-ignore
/php*.dist export-ignore
/php*.neon export-ignore
/renovate.json export-ignore
17 changes: 13 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ permissions:

jobs:
test:
name: PHP ${{ matrix.php-versions }} Test ${{ matrix.composer-flags }}
name: PHP ${{ matrix.php-versions }} - Symfony ${{ matrix.symfony }} - Test ${{ matrix.composer-flags }}
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2']
composer-flags: ['', '--prefer-lowest']
php-versions: [ '8.1', '8.2', '8.3' ]
symfony: [ '^6.0', '^7.0' ]
composer-flags: [ '', '--prefer-lowest' ]
exclude:
- php-versions: 8.1
symfony: '^7.0'
steps:
- uses: actions/checkout@v4

Expand All @@ -26,6 +32,9 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: none

- name: Add symfony flex
run: composer global config --no-interaction allow-plugins.symfony/flex true && composer global require symfony/flex

- name: Validate composer.json and composer.lock
run: composer validate

Expand All @@ -45,7 +54,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
coverage: pcov

- name: Install dependencies
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF)](https://php.net/)
![Run tests](https://github.com/123inkt/phpunit-extensions/actions/workflows/test.yml/badge.svg)

## PHPUnit extensions

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"phpstan/phpstan-symfony": "^1.2.16",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.7",
"symfony/form": "^6.0",
"symfony/framework-bundle": "^6.0",
"symfony/security-core": "^6.0",
"symfony/twig-bundle": "^6.0",
"symfony/validator": "^6.0"
"symfony/form": "^6.0||^7.0",
"symfony/framework-bundle": "^6.0||^7.0",
"symfony/security-core": "^6.0||^7.0",
"symfony/twig-bundle": "^6.0||^7.0",
"symfony/validator": "^6.0||^7.0"
},
"scripts": {
"check": ["@check:phpstan", "@check:phpmd", "@check:phpcs"],
Expand Down

0 comments on commit fb1d7ae

Please sign in to comment.