Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ concurrency:
jobs:
tests:
runs-on: "ubuntu-latest"
name: "Tests with PHP ${{ matrix.php }}"
name: "Tests with PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}"
strategy:
fail-fast: true
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
symfony:
- "unchanged"
- "6.*.*"
- "7.*.*"
exclude:
- php: "8.1"
symfony: "7.*.*"

steps:
- name: "Check out repository code"
Expand All @@ -33,7 +40,11 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php }}"
tools: "composer"
tools: "composer, flex"

- name: "Configure Symfony version"
if: "matrix.symfony != 'unchanged'"
run: "echo \"SYMFONY_REQUIRE=${{ matrix.symfony }}\" >> $GITHUB_ENV"

- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v2"
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
],
"require": {
"php": "^8.1",
"symfony/filesystem": "^6.3",
"symfony/filesystem": "^6.3 || ^7.0",
"thecodingmachine/safe": "^2.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
"ergebnis/composer-normalize": "^2.28",
"infection/infection": ">=0.26",
"phpunit/phpunit": "^10.3",
"symfony/finder": "^6.3"
"symfony/finder": "^6.3 || ^7.0"
},
"prefer-stable": true,
"autoload": {
Expand Down