-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (53 loc) · 1.26 KB
/
e2e-tests.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: E2E Tests
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
redis:
image: redis
ports:
- 6379:6379
redis-cluster:
image: grokzen/redis-cluster:6.2.14
ports:
- 7006:7000
- 7001:7001
- 7002:7002
- 7003:7003
- 7004:7004
- 7005:7005
strategy:
matrix:
node-version: [lts/*]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Setup pnpm
uses: pnpm/[email protected]
- name: Install Dependencies
run: pnpm install
- name: Setup dev.db
run: |
pnpm prisma generate
pnpm prisma db push
working-directory: tests/e2e
- name: Install Playwright
run: pnpm dlx playwright install chromium
- name: Test
run: pnpm test:packages
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: tests/e2e/playwright-report
retention-days: 14