-
Notifications
You must be signed in to change notification settings - Fork 15
54 lines (41 loc) · 1.05 KB
/
test.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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup NodeJS 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: yarn
- name: Enable Yarn 4
run: corepack enable
- name: Install dependencies
run: yarn
- name: Check formatting
run: yarn format
- name: Build
run: yarn build
- name: Check bundle size
run: yarn size
- name: Run tests
run: yarn test
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- name: Save Playwright report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30