Skip to content

Bump @wordpress/eslint-plugin from 17.11.0 to 21.4.0 #464

Bump @wordpress/eslint-plugin from 17.11.0 to 21.4.0

Bump @wordpress/eslint-plugin from 17.11.0 to 21.4.0 #464

Workflow file for this run

name: PHP lint & test
on:
push:
branches-ignore:
- 'main-built'
jobs:
php-lint-test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.11'
cache: 'yarn'
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Validate Composer
run: composer validate --strict
- name: Setup composer
uses: php-actions/composer@v6
with:
php_version: '8.3'
- name: PHP Lint
run: composer lint
- name: PHPStan
run: composer phpstan
- name: PHPMD
run: composer phpmd
- name: Install wp-env
run: yarn add @wordpress/env -D
- name: Start wp-env
run: yarn wp-env:coverage
- name: WordPress unit test
run: yarn php:unit
- name: Unit test coverage report
uses: codecov/codecov-action@v4
with:
files: ./unit-coverage.xml
flags: unittests
name: codecov-unit
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: WordPress integration test
run: yarn php:integration
- name: Integration test coverage report
uses: codecov/codecov-action@v4
with:
files: ./integration-coverage.xml
flags: integrationtests
name: codecov-integration
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: WordPress integration test as multisite
run: yarn php:multisite
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: php-report
path: php-report/
retention-days: 30