Enable --update-wp flag for --vip-dev-env #73
This file contains 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: PHP Quality Assurance | |
on: | |
push: | |
paths: | |
- '**workflows/quality-assurance-php.yml' | |
- '**.php' | |
- '**phpcs.xml.dist' | |
- '**psalm.xml' | |
pull_request: | |
paths: | |
- '**workflows/quality-assurance-php.yml' | |
- '**.php' | |
- '**phpcs.xml.dist' | |
- '**psalm.xml' | |
workflow_dispatch: | |
inputs: | |
jobs: | |
required: true | |
type: choice | |
default: 'Run all' | |
description: 'Choose jobs to run' | |
options: | |
- 'Run all' | |
- 'Run PHPCS only' | |
- 'Run Psalm only' | |
- 'Run lint only' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-php: | |
if: ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run lint only')) }} | |
strategy: | |
matrix: | |
php: [ "8.0", "8.1", "8.2", "8.3" ] | |
uses: inpsyde/reusable-workflows/.github/workflows/lint-php.yml@main | |
with: | |
PHP_VERSION: ${{ matrix.php }} | |
LINT_ARGS: '-e php --colors --show-deprecated ./src' | |
coding-standards-analysis-php: | |
if: ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run PHPCS only')) }} | |
uses: inpsyde/reusable-workflows/.github/workflows/coding-standards-php.yml@main | |
static-code-analysis-php: | |
if: ${{ (github.event_name != 'workflow_dispatch') || ((github.event.inputs.jobs == 'Run all') || (github.event.inputs.jobs == 'Run Psalm only')) }} | |
strategy: | |
matrix: | |
php: [ "8.0", "8.1", "8.2", "8.3" ] | |
uses: inpsyde/reusable-workflows/.github/workflows/static-analysis-php.yml@main | |
with: | |
PHP_VERSION: ${{ matrix.php }} | |
PSALM_ARGS: --output-format=github --no-suggestions --no-cache --no-diff --find-unused-psalm-suppress |