Fix quality (Unit tests and PSR2 style) #3
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: "Unit tests" | |
on: | |
push: | |
branches: [ main, master, "1.0" ] | |
pull_request: | |
branches: [ main, master, "1.0" ] | |
jobs: | |
static-analysis-phpstan: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- 8.0 | |
- 8.1 | |
- 8.2 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: ${{ matrix.php-version }} | |
- name: Install dependencies with composer | |
run: composer i --no-interaction --no-progress --no-suggest | |
- name: Run PHPUnit | |
run: ./vendor/bin/phpunit --testdox | |
- name: Run PHPCS | |
run: ./vendor/bin/phpcs --standard=PSR2 src/ --colors -n |