Update codeql-analysis.yml #1381
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: "PHPStan Static Analysis for FlatPress" | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 2 * * 0' | |
| jobs: | |
| phpstan: | |
| name: Run PHPStan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout FlatPress | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| extensions: mbstring, intl, dom, json, xml, ctype, fileinfo, iconv, curl | |
| - name: Clear PHPStan Cache | |
| run: rm -rf /tmp/phpstan | |
| - name: Download PHPStan (phar) | |
| run: curl -L https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar -o phpstan.phar | |
| - name: Run PHPStan (phar) | |
| run: php phpstan.phar analyse --configuration=.dist/phpstan.neon.dist --error-format=table | |
| working-directory: . |