Skip to content

Commit

Permalink
Test initial run
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWiegman committed Jun 6, 2024
1 parent f0543e0 commit 7eb5777
Show file tree
Hide file tree
Showing 7 changed files with 2,158 additions and 34 deletions.
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:
push:
branches: [ main ]
pull_request:
branches: [ main, canary ]

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 WordPress Environment and activate theme
run: |
npm run --workspace=plugins/faustwp start
- name: Build the example project
run: |
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
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

0 comments on commit 7eb5777

Please sign in to comment.