Bump frankdejonge/use-github-token from 1.0.2 to 1.1.0 (#42) #64
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: Static analysis | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
phpstan: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [ 8.2 ] | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
env: | |
fail-fast: true | |
- name: Install Composer dependencies | |
run: composer install --no-progress | |
- name: Install PHPStan | |
run: composer --working-dir=vendor-bin/phpstan --no-progress install | |
- name: Run PHPStan | |
run: ./vendor-bin/phpstan/vendor/bin/phpstan --configuration=./phpstan.neon.dist --autoload-file=./vendor/autoload.php analyse |