Skip to content

fix: Login page not accessible after disabling plugin. #2

fix: Login page not accessible after disabling plugin.

fix: Login page not accessible after disabling plugin. #2

Workflow file for this run

name: E2E
on:
pull_request:
push:
branches: [master]
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
e2e:
name: Playwright + wp-env
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install npm dependencies
# --ignore-scripts skips the legacy node-sass build pulled in by
# the existing gulp toolchain (not needed for E2E tests).
run: npm ci --ignore-scripts
- name: Install Playwright browser (chromium)
run: npx playwright install --with-deps chromium
- name: Start wp-env
run: npx wp-env start
- name: Run E2E tests
run: npm run test:e2e
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
- name: Stop wp-env
if: always()
run: npx wp-env stop