File tree Expand file tree Collapse file tree 1 file changed +28
-9
lines changed
Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- pull_request_target :
5- types :
6- - synchronize
7- - opened
8- - reopened
9-
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
108 workflow_dispatch :
119
1210jobs :
2826 run : |
2927 pnpm install
3028 pnpm run lint
31- test :
29+ vitest :
3230 runs-on : ubuntu-latest
3331 steps :
3432 - uses : actions/checkout@v3
4240 with :
4341 node-version : 20
4442 cache : ' pnpm'
45- - name : test basic
43+ - name : run unit & integration tests
44+ run : |
45+ pnpm install
46+ pnpm run test
47+
48+ e2e :
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@v3
52+ with :
53+ fetch-depth : 0
54+ ref : ${{ github.event.pull_request.head.sha }}
55+ - uses : pnpm/action-setup@v4
56+ with :
57+ version : latest
58+ - uses : actions/setup-node@v4
59+ with :
60+ node-version : 20
61+ cache : ' pnpm'
62+ - name : Install deps & Playwright browsers
4663 run : |
4764 pnpm install
48- pnpm run test
65+ pnpm exec playwright install --with-deps
66+ - name : Run E2E tests
67+ run : pnpm run test:e2e
You can’t perform that action at this time.
0 commit comments