Skip to content

Revisit QA pipelines #11

Revisit QA pipelines

Revisit QA pipelines #11

Workflow file for this run

name: CodeQL Analysis
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
php-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pluginpass-pro-plugintheme-licensing
strategy:
matrix:
php-version: ['8.2', '8.3', '8.4']
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Cache Composer
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ hashFiles('pluginpass-pro-plugintheme-licensing/composer.lock') }}
restore-keys: composer-
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Configure PHPCS paths
run: vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcsstandards/phpcsutils
- name: Run PHPCS
run: vendor/bin/phpcs --standard=WordPress --extensions=php inc/
- name: Run PHPStan
run: vendor/bin/phpstan analyse inc --memory-limit=1G