Merge pull request #274 from mingtsay/master #54
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: Static Analysis | |
on: ['push', 'pull_request'] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['7.2', '7.3', '7.4', '8.0', '8.1'] | |
name: Code Style | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
ini-values: pcov.directory=api #optional, see above for usage. | |
coverage: pcov | |
- name: Install Dependencies | |
run: composer update --no-interaction --no-progress | |
- name: Run PHPCS | |
run: composer run cs | |
- name: Run PHPStan | |
run: composer run static |