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
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
symfony-version: ['^7.0', '^8.0']
name: test (Symfony ${{ matrix.symfony-version }})
steps:
- uses: actions/checkout@v4

Expand All @@ -91,8 +95,15 @@ jobs:
php-version: '8.4'
extensions: intl, zip

- name: Require Symfony ${{ matrix.symfony-version }}
run: |
composer require \
symfony/console:${{ matrix.symfony-version }} \
symfony/filesystem:${{ matrix.symfony-version }} \
--no-update --no-interaction

- name: Install dependencies
run: composer install --prefer-dist --no-progress
run: composer update --prefer-dist --no-progress

- name: Run tests
run: vendor/bin/phpunit --testdox
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ parameters:
paths:
- src
- tests
bootstrapFiles:
- vendor/autoload.php
excludePaths:
- tests/bootstrap.php

Expand Down
13 changes: 9 additions & 4 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ final class Application extends BaseApplication
public function __construct()
{
parent::__construct(self::NAME, self::VERSION);

$this->addCommand(new InitCommand());
$this->addCommand(new CiUpdateCommand());
$this->addCommand(new CiAddCommand());
$this->setDefaultCommand('init');
}

protected function getDefaultCommands(): array
{
return array_merge(parent::getDefaultCommands(), [
new InitCommand(),
new CiUpdateCommand(),
new CiAddCommand(),
]);
}
}
Loading