Bump @playwright/test from 1.42.1 to 1.48.0 #455
Workflow file for this run
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 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 |