Skip to content

Update codeql-analysis.yml #1381

Update codeql-analysis.yml

Update codeql-analysis.yml #1381

Workflow file for this run

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: .