Skip to content

v0.3.9 - Bugfixes & updates #50

v0.3.9 - Bugfixes & updates

v0.3.9 - Bugfixes & updates #50

Workflow file for this run

name: "Integrate"
on:
pull_request: null
push:
branches:
- stable
- develop
jobs:
syntax-check:
name: "Syntax check on all PHP versions"
runs-on: "ubuntu-latest"
strategy:
matrix:
php: ['7.4', '8.0', '8.1', '8.2.']
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php }}
- name: "PHP lint"
run: "find *.php includes/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l"
coding-standard:
name: "Check coding standard"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
- name: "Install PHPCS"
run: |
composer require --no-plugins --dev wp-coding-standards/wpcs
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer run post-install-cmd
- name: "Run PHPCS"
run: "vendor/bin/phpcs --standard=WordPress-Core *.php src/"
static-analysis:
name: "Run static analysis"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
- name: "Install PHPStan"
run: "composer require --dev szepeviktor/phpstan-wordpress"
- name: "Run PHPStan"
run: "vendor/bin/phpstan analyze"