improved type safety and correctness with PHPStan #35
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, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
coverage: | |
- none | |
include: | |
- php: '8.3' | |
coverage: xdebug | |
steps: | |
- uses: shivammathur/[email protected] | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: ${{ matrix.coverage }} | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 # required by Scrutinizer | |
- run: composer install --no-progress --no-ansi --no-interaction --dev --prefer-dist | |
- run: composer test && composer inspect | |
- if: matrix.coverage == 'xdebug' | |
uses: sudo-bot/action-scrutinizer@latest | |
with: | |
cli-args: '--format=php-clover test/build/clover.xml' |