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
24 changes: 12 additions & 12 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,41 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4

- name: Download dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v4

- name: Install PHPStan
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v4
with:
composer-options: "--working-dir=tools/phpstan"
working-directory: "tools/phpstan"

- name: PHPStan
run: tools/phpstan/vendor/bin/phpstan analyze --no-progress --error-format=checkstyle
run: tools/phpstan/vendor/bin/phpstan analyze --no-progress

php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4

- name: Install php-cs-fixer
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v4
with:
composer-options: "--working-dir=tools/php-cs-fixer"
working-directory: "tools/php-cs-fixer"

- name: PHP-CS-Fixer
run: tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff --config=.php-cs-fixer.dist.php
Expand All @@ -57,10 +57,10 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4

- name: Download dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v4

- name: Lint Composer config
shell: bash
Expand Down
43 changes: 17 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,37 @@ jobs:
runs-on: ubuntu-latest

strategy:
matrix:
include:
# Lowest Deps
- php: 8.2
symfony-require: 6.4.*
composer-flags: '--prefer-stable --prefer-lowest'
# LTS with latest stable PHP
- php: 8.2
symfony-require: 6.4.*
composer-flags: '--prefer-stable'
# Active release
- php: 8.3
symfony-require: 7.0.*
composer-flags: '--prefer-stable --ignore-platform-req=php+'
# Development release
- php: nightly
symfony-require: 7.1.*@dev
composer-flags: '--ignore-platform-req=php+'
stability: dev
can-fail: true
fail-fast: false
matrix:
php: [ 8.4, 8.5 ]
symfony: [ 7.4.*, 8.0.*, 8.1.* ]

steps:
- name: Check out repository code
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- name: Configure Composer minimum stability
if: matrix.stability
run: composer config minimum-stability ${{ matrix.stability }}
- name: Cache Composer
uses: actions/cache@v5
with:
path: ~/.cache/composer
key: composer-${{ matrix.php }}-sf${{ matrix.symfony }}-${{ hashFiles('composer.json') }}
restore-keys: composer-${{ matrix.php }}-sf${{ matrix.symfony }}-

- name: Activate Symfony Flex
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-require }}
run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --optimize-autoloader
SYMFONY_REQUIRE: ${{ matrix.symfony }}
run: composer update --prefer-stable --no-interaction --no-progress --optimize-autoloader

- name: Run PHPUnit
run: vendor/bin/phpunit
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
}
},
"require": {
"symfony/config": "^6.4|^7.0",
"symfony/console": "^6.4|^7.0",
"symfony/dependency-injection": "^6.4|^7.0",
"symfony/http-kernel": "^6.4|^7.0",
"symfony/routing": "^6.4|^7.0"
"symfony/config": "^7.4|^8.0",
"symfony/console": "^7.4|^8.0",
"symfony/dependency-injection": "^7.4|^8.0",
"symfony/http-kernel": "^7.4|^8.0",
"symfony/routing": "^7.4|^8.0"
},
"config": {
"sort-packages": true
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/phpunit-bridge": "^7.0"
"phpunit/phpunit": "^12.5",
"symfony/framework-bundle": "^7.4|^8.0",
"symfony/phpunit-bridge": "^7.4|^8.0"
}
}
Loading
Loading