Skip to content

e2e: use nvmrc version #12

e2e: use nvmrc version

e2e: use nvmrc version #12

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches: [trunk]
jobs:
test:
name: Playwright e2e Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: "npm"
- name: Install dependencies
run: |
npm ci
composer install --prefer-dist --no-progress
- name: Install wp-env
run: npm install -g @wordpress/env
- name: Start wp-env
run: wp-env start
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
- name: Run e2e tests
run: npm run test:e2e
- name: Stop wp-env
if: always()
run: wp-env stop