chore(cs): resolve formatting issues #110
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] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: | |
- "8.1" | |
- "8.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php }}" | |
extensions: yaml | |
- name: Install Composer dependencies | |
run: composer install --prefer-dist --no-interaction | |
# PHPStan | |
- name: Run PHPStan | |
run: ./vendor/bin/phpstan analyze | |
# PHPUnit | |
- name: Run PHPUnit | |
run: ./vendor/bin/phpunit --bootstrap vendor/autoload.php --configuration tests/phpunit.xml | |
# Code style checks | |
- name: Analyze code style | |
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --ansi |