deps: Update symfony #102
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: main | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.1', '8.2', '8.3'] | |
dependency-versions: ['lowest', 'highest'] | |
name: PHP ${{ matrix.php-versions }} with ${{ matrix.dependency-versions }} versions of Composer dependencies | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
tools: phpstan, php-cs-fixer:3 | |
coverage: pcov | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: ${{ matrix.dependency-versions }} | |
- name: Run PHP CS Fixer | |
run: php-cs-fixer fix --diff --dry-run | |
env: | |
PHP_CS_FIXER_IGNORE_ENV: 1 | |
- name: Run PHPStan | |
run: phpstan | |
- name: Test & Generate Code Coverage | |
run: ./vendor/bin/phpunit | |
- name: Upload coverage results to Coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
composer global require php-coveralls/php-coveralls | |
php-coveralls --coverage_clover=clover.xml -v | |
if: matrix.php-versions == '8.0' |