Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test initial run #1905

Closed
wants to merge 12 commits into from
Closed
47 changes: 47 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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 --workspace=plugins/faustwp test

- uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-report
path: plugins/faustwp/artifacts/
retention-days: 30
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ faustjs.code-workspace

# Ignore the WordPress source where used by various development environments
wordpress/

# Ignore Playwright test results
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
artifacts/
Loading
Loading