Test initial run #5
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: 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 |