Skip to content

Commit 77684e8

Browse files
feat: add playwright tests and github action
1 parent a0fd134 commit 77684e8

File tree

6 files changed

+853
-2
lines changed

6 files changed

+853
-2
lines changed

.github/workflows/playwright.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [ gh-pages ]
5+
pull_request:
6+
branches: [ gh-pages ]
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
- name: Install dependencies
16+
run: npm install
17+
- name: Install Playwright Browsers
18+
run: npx playwright install --with-deps
19+
- name: Run Playwright tests
20+
run: npx playwright test
21+
- uses: actions/upload-artifact@v3
22+
if: always()
23+
with:
24+
name: playwright-report
25+
path: playwright-report/
26+
retention-days: 30

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# Playwright
3+
node_modules/
4+
/test-results/
5+
/playwright-report/
6+
/blob-report/
7+
/playwright/.cache/
8+
/playwright/.auth/

0 commit comments

Comments
 (0)