Skip to content

Test initial run

Test initial run #5

Workflow file for this run

name: E2E Tests
on:
pull_request:
paths-ignore:
- '**/*.md'
jobs:
e2e-test:
timeout-minutes: 60
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Node dependencies
run: npm ci
- name: Build CSS and JS
run: npm run build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Start and Configure WordPress Environment
run: |
npm run --workspace=plugins/faustwp start
- name: Build the example project
run: |
npm install --workspace=examples/next/faustwp-getting-started
NEXT_PUBLIC_WORDPRESS_URL=http://localhost:8889 npm run --workspace=examples/next/faustwp-getting-started build
- name: Run E2E tests
run: npm run test
- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-report
path: artifacts/
retention-days: 30