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
22 changes: 15 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
Tests:
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony }}${{ matrix.description }}
name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-version }}${{ matrix.description }}
runs-on: ubuntu-latest
env:
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=0'
Expand All @@ -20,13 +20,16 @@ jobs:
- '8.4'
- '8.3'
- '8.2'
symfony: ['']
symfony-version: ['']
include:
- php: '8.5'
composer_options: '--ignore-platform-req=php+'
- symfony: '^7.3'
- symfony-version: '^8.0.0-BETA1'
composer-minimum-stability: 'beta'
php: '8.4'
- symfony-version: '^7.3'
php: '8.3'
- symfony: '^6.4'
- symfony-version: '^6.4'
php: '8.2'
- php: '8.2'
dependencies: 'prefer-lowest'
Expand All @@ -43,14 +46,19 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: Restrict Symfony version
run: composer require --dev "symfony/symfony:${{ matrix.symfony }}" --no-update
if: matrix.symfony
tools: flex
- name: Configure Composer minimum-stability
if: matrix.composer-minimum-stability
run: composer config minimum-stability ${{ matrix.composer-minimum-stability }}
- name: Remove Composer unneeded dependencies
run: composer remove --dev --no-update vimeo/psalm psalm/plugin-phpunit facile-it/facile-coding-standard
- name: Install dependencies
uses: "ramsey/composer-install@v3"
with:
composer-options: ${{ matrix.composer_options }}
dependency-versions: "${{ matrix.dependencies }}"
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: Upload code coverage
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"require": {
"php": "^8.2",
"ext-pcntl": "*",
"symfony/console": "^6.4 || ^7.0"
"symfony/console": "^6.4 || ^7.0 || ^8.0"
},
"require-dev": {
"facile-it/facile-coding-standard": "^1.2",
Expand All @@ -46,8 +46,8 @@
"psalm/plugin-phpunit": "0.19.3",
"rector/rector": "2.2.7",
"shipmonk/composer-dependency-analyser": "^1.8",
"symfony/phpunit-bridge": "^6.4 || ^7.0",
"symfony/process": "^6.4 || ^7.0",
"symfony/phpunit-bridge": "^6.4 || ^7.0 || ^8.0",
"symfony/process": "^6.4 || ^7.0 || ^8.0",
"vimeo/psalm": "^6"
}
}
2 changes: 1 addition & 1 deletion tests/Stub/console
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ require __DIR__.'/../../vendor/autoload.php';
$input = new ArgvInput();

$application = new Application('Stub application');
$application->add(new StubTerminableCommand());
$application->addCommands([new StubTerminableCommand()]);
$application->run($input);