Drop support of PHP 8.1, Add support of PHP 8.4, and update tooling #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
'on': | |
push: | |
branches: [ main ] | |
pull_request: ~ | |
jobs: | |
ci: | |
name: Run the test suite | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: | |
- '8.2' | |
- '8.3' | |
- '8.4' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '${{ matrix.php-versions }}' | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run tests | |
run: composer test | |
php-cs-fixer: | |
name: Run PHP CS Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Install PHP CS Fixer | |
run: composer install --prefer-dist --no-progress --working-dir=tools/php-cs-fixer | |
- name: Run PHP CS Fixer | |
run: composer cs-check | |
phpstan: | |
name: Run PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.4' | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Install PHPStan | |
run: composer install --prefer-dist --no-progress --working-dir=tools/phpstan | |
- name: Run PHPStan | |
run: composer phpstan |