set phpstan static check to 7 and refactor #101
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: CI | |
on: [push] | |
jobs: | |
build: | |
name: PHP Composer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-interaction | |
- name: Run PHPUnit tests | |
run: vendor/bin/phpunit | |
- name: Run PhpStan Analyse Code | |
run: vendor/bin/phpstan analyse --level=6 src | |
- name: Run PhpStan Analyse Code | |
run: vendor/bin/phpstan analyse --level=5 tests |