Skip to content

Merge pull request #26 from stellarwp/feat/parent-page-method #188

Merge pull request #26 from stellarwp/feat/parent-page-method

Merge pull request #26 from stellarwp/feat/parent-page-method #188

Workflow file for this run

# cspell:ignore shivammathur reqs
name: PHPStan
on:
pull_request:
push:
branches:
- main
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: "8.0"
extensions: mbstring, intl
coverage: none
- uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
# See https://phpstan.org/user-guide/result-cache#setup-in-github-actions for more info.
- name: Restore PHPStan cache
uses: actions/cache/restore@v4
with:
path: phpstan-cache
key: v2-phpstan-${{ runner.os }}-${{ github.ref_name }}-${{ github.run_id }}
restore-keys: |
v2-phpstan-${{ runner.os }}-${{ github.ref_name }}-
v2-phpstan-${{ runner.os }}-
v2-phpstan-
- name: Run PHPStan static analysis
run: composer test:analysis
- name: Save PHPStan cache
uses: actions/cache/save@v4
if: ${{ !cancelled() }}
with:
path: phpstan-cache
key: v2-phpstan-${{ runner.os }}-${{ github.ref_name }}-${{ github.run_id }}