PHPStan Level 8 #197
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: | |
branches: | |
- master | |
- '5.x' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
testsuite: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: ['8.1', '8.2', '8.3', '8.4'] | |
dependencies: ['highest'] | |
include: | |
- php-version: '8.1' | |
dependencies: 'lowest' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- name: Composer install | |
uses: ramsey/composer-install@v3 | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
- name: Run PHPUnit | |
run: composer phpunit | |
cs-stan: | |
name: Coding Standard & Static Analysis | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
tools: phive, cs2pr | |
coverage: none | |
- name: Composer install | |
uses: ramsey/composer-install@v3 | |
- name: Install PHP tools with phive. | |
run: "phive install --trust-gpg-keys 'CF1A108D0E7AE720,51C67305FFC2E5C0,12CE0F1D262429A5'" | |
- name: Run PHP CodeSniffer | |
run: vendor/bin/phpcs --report=checkstyle | cs2pr | |
- name: Run PHPStan | |
run: tools/phpstan analyse --error-format=github |