Skip to content

Bump wp-coding-standards/wpcs from 3.3.0 to 3.4.1 in the composer-security group across 1 directory #174

Bump wp-coding-standards/wpcs from 3.3.0 to 3.4.1 in the composer-security group across 1 directory

Bump wp-coding-standards/wpcs from 3.3.0 to 3.4.1 in the composer-security group across 1 directory #174

Workflow file for this run

name: WordPress Plugin Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
php: [ '7.4', '8.3' ]
wp: [ 'latest', '6.6' ]
uses: tarosky/workflows/.github/workflows/wp-unit-test.yml@main
with:
php_version: ${{ matrix.php }}
wp_version: ${{ matrix.wp }}
phpcs:
name: PHP Syntax Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: composer install --no-progress
- name: PHP CodeSniffer
run: composer lint
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
tools: composer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: composer install --no-progress
- name: Run PHPStan
run: composer phpstan
phplint:
uses: tarosky/workflows/.github/workflows/phplint.yml@main
with:
php_versions: '["7.4", "8.3"]'
assets:
name: Test Assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install NPM Dependencies
run: npm install
- name: Lint JS
run: npm run lint:js
- name: Lint CSS
run: npm run lint:css
- name: JS Unit Test
run: npm run test:js
status:
name: Status Check
runs-on: ubuntu-latest
needs: [ test, phpcs, phpstan, phplint, assets ]
if: always()
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}