Improve PHPStan config and typehint array-ish types #5
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: PR Testing & Validation | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install composer dependencies | |
run: | | |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: PHP Lint | |
run: | | |
composer run lint | |
- name: Check code style | |
run: | | |
composer run cs | |
- name: Check PHP compatibility | |
run: | | |
composer run cscompat8 | |
phpunit: | |
runs-on: ubuntu-latest | |
needs: validation | |
permissions: | |
contents: read | |
checks: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install composer dependencies | |
run: | | |
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | |
- name: Run tests | |
run: | | |
composer run ut |