Skip to content

Commit 5233783

Browse files
author
root
committed
ci: add e2e test job and enable preview deployments for feat/integrate-wrapped PRs
1 parent 6b1e873 commit 5233783

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/deployment-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: Deploy to Firebase Hosting on PR
66
pull_request:
77
branches:
88
- dev
9+
- feat/integrate-wrapped
910
workflow_dispatch:
1011

1112
jobs:

.github/workflows/husky.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,25 @@ jobs:
3131
- run: pnpm test
3232
- run: pnpm ci-dev-build
3333
- run: pnpm test:generated
34+
35+
e2e:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: pnpm/action-setup@v4
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 22
43+
cache: pnpm
44+
- name: install dependencies
45+
run: pnpm install --frozen-lockfile
46+
- name: install playwright browsers
47+
run: pnpm exec playwright install --with-deps chromium
48+
- name: run e2e tests
49+
run: pnpm test:e2e
50+
- uses: actions/upload-artifact@v4
51+
if: failure()
52+
with:
53+
name: playwright-report
54+
path: test-results/
55+
retention-days: 7

0 commit comments

Comments
 (0)