feature: update github qa pipeline #86
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: "QA Action" | |
on: | |
push: | |
branches: | |
- "master" | |
- "develop" | |
jobs: | |
testing: | |
name: "Run PHP-CS-Fixer, PHPStan and PHPUnit" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.3" | |
tools: composer:v2 | |
ini-values: "memory_limit=-1" | |
env: | |
fail-fast: true | |
- name: "Checkout Project" | |
uses: actions/checkout@v3 | |
- name: "Install Dependencies" | |
run: composer install | |
- name: "Run PHP-CS-Fixer" | |
run: php vendor/bin/php-cs-fixer fix --diff --verbose --dry-run | |
- name: "Run PHPStan" | |
run: php vendor/bin/phpstan analyse | |
- name: "Run PHPUnit" | |
run: php vendor/bin/phpunit |