-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: when pr, e2e test github actions ci
- Loading branch information
root
authored and
root
committed
Sep 19, 2023
1 parent
8646e82
commit f3d6e4b
Showing
1 changed file
with
28 additions
and
0 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,28 @@ | ||
name: E2E Tests - Playwright | ||
on: | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
tests: | ||
timeout-minutes: 600 | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/view | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.16.0 | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Install global Playwright | ||
run: npm global add playwright | ||
|
||
- name: npx playwright install | ||
run: npx playwright install | ||
|
||
- name: Run Playwright tests | ||
run: npm test:e2e |