Skip to content

Bump plugin version and update changelog. #16

Bump plugin version and update changelog.

Bump plugin version and update changelog. #16

Workflow file for this run

name: E2E Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'feature/**'
types:
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
e2e-test:
name: WP ${{ matrix.wordpress }}${{ matrix.experimental && ' (experimental)' || '' }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: true
matrix:
wordpress: [ '6.1', 'latest' ]
experimental: [false]
include:
- wordpress: 'trunk'
experimental: true
env:
WP_ENV_CORE: ${{ matrix.wordpress == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wordpress ) }}
continue-on-error: ${{ matrix.experimental == true }}
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v3
- name: Setup Node.js (via .nvmrc)
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: npm
- name: npm install
run: npm ci
- name: Build
run: npm run build
- name: Install Playwright dependencies
run: npx playwright install chromium firefox webkit --with-deps
- name: Install WordPress
run: npm run wp-env start
- name: Running e2e tests
run: npm run test-e2e
- name: Archive debug artifacts (screenshots, traces)
uses: actions/upload-artifact@v3
if: always()
with:
name: failures-artifacts
path: artifacts/test-results
if-no-files-found: ignore