-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 970 Bytes
/
ci.yaml
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
name: Test
on:
pull_request:
branches: [main]
workflow_dispatch:
push:
branches: ["*"]
jobs:
unit-test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm i
- run: npm run typecheck
- run: npm run build
- run: npm run test
e2e-test:
name: Run E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependencies
run: |
npm ci
npx playwright install
sudo npx playwright install-deps
npm run build
- name: Run E2E Tests
run: npm run test:e2e
- name: Save Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-videos
path: playwright/report