Merge pull request #30 from minvws/update-deprecated-workflows-20241106 #111
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: Testing | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
max-parallel: 3 | |
matrix: | |
php-versions: [ '7.4', '8.0', '8.1', '8.2' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: xdebug | |
- name: Install Dependencies | |
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Execute tests (Unit and Feature) | |
run: vendor/bin/phpunit --coverage-text | |
- name: Static analysis with PHPStan | |
run: vendor/bin/phpstan analyse | |
- name: Static analysis with Psalm | |
run: vendor/bin/psalm | |
- name: Coding style PSR12 Check | |
run: vendor/bin/phpcs |