-
Notifications
You must be signed in to change notification settings - Fork 87
85 lines (75 loc) · 2.02 KB
/
ci.yml
File metadata and controls
85 lines (75 loc) · 2.02 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
paths-ignore:
- '**/README.md'
- 'docs/**'
pull_request:
paths-ignore:
- '**/README.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
- run: pnpm i
- run: pnpm lint
typecheck:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
- run: pnpm i
- run: pnpm dev:prepare
- run: pnpm typecheck
- run: pnpm run --if-present test:attw
build:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
- run: pnpm i
- run: pnpm dev:prepare
- run: pnpm build
test:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
- run: pnpm i
- run: pnpm dev:prepare
- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v5
with:
path: ~/.cache/ms-playwright
key: playwright-ubuntu-24.04-arm-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install Playwright browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm exec playwright-core install chromium
continue-on-error: true
- run: pnpm run --if-present prepare:fixtures
- run: pnpm vitest run --project typecheck --project unit --project e2e --project nuxt-runtime