-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0543e0
commit 7eb5777
Showing
7 changed files
with
2,158 additions
and
34 deletions.
There are no files selected for viewing
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
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 |
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
Oops, something went wrong.