-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.17 KB
/
main.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
name: Node.js CI
on: [push]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/setup
build:
runs-on: ubuntu-latest
needs: [setup]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/setup
- run: pnpm run lint
- run: pnpm run build
test:
timeout-minutes: 60
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/setup
- name: Install Playwright Browsers
run: pnpm exec playwright install chromium --with-deps
- name: Build
run: VITE_IS_TEST=true pnpm run build
- name: Run Playwright tests
run: pnpm test -- --reporter=html
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 10