Correct extensions used when running test workflow #25
This file contains hidden or 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: Analyse | |
| on: | |
| push: | |
| paths: | |
| - '**.php' | |
| - 'phpstan.neon.dist' | |
| jobs: | |
| analyse: | |
| name: PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: [ 8.2, 8.3, 8.4 ] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: json, zip | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Install dependencies | |
| run: composer install --no-interaction --no-progress | |
| - name: Run analysis | |
| run: php vendor/bin/phpstan analyse --verbose --ansi |