feat: add pre-push hook for PHP checks and update workflow job name #5
Workflow file for this run
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: Static Analysis | |
| on: | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| static-analyse: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| - name: Install composer dependencies | |
| run: composer install -n --prefer-dist | |
| - name: Run PHPStan | |
| run: vendor/bin/phpstan analyse --memory-limit=1G | |
| - name: Run Laravel Pint (Lint) | |
| run: vendor/bin/pint --test |