-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (39 loc) · 1.12 KB
/
e2e-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Tests: E2E'
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
tests-e2e:
name: Run end-to-end tests
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.cache/ms-playwright
key: Linux-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: Linux-playwright-
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
# prettier-ignore
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- uses: pnpm/[email protected]
with:
version: 6.0.2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: pnpm i
- name: Install playwright browsers
run: npx playwright install --with-deps
- name: Test
run: pnpm run test
env:
PUBLIC_FATHOM_ID: ${{ secrets.PUBLIC_FATHOM_ID }}
PUBLIC_FATHOM_URL: ${{ secrets.PUBLIC_FATHOM_URL }}