Skip to content

Commit 812b8b4

Browse files
committed
Run Playwright on CI
1 parent 2c6d0d7 commit 812b8b4

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/check.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,18 @@ jobs:
2323
- name: Run Prettier Check
2424
run: pnpm format:check
2525

26-
- name: Run Playwright
27-
run: pnpm test
26+
# per the docs: "caching browser binaries is not recommended,
27+
# since the amount of time it takes to restore the cache is
28+
# comparable to the time it takes to download the binaries"
29+
- name: Install Playwright Browsers
30+
run: npx playwright install --with-deps
31+
32+
- name: Run Playwright tests
33+
run: npx playwright test
34+
35+
- uses: actions/upload-artifact@v4
36+
if: ${{ !cancelled() }}
37+
with:
38+
name: playwright-report
39+
path: playwright-report/
40+
retention-days: 30

0 commit comments

Comments
 (0)