-
-
Notifications
You must be signed in to change notification settings - Fork 580
41 lines (32 loc) · 930 Bytes
/
ci.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
name: ci
permissions: {}
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
merge_group: {}
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# workaround for npm registry key change
# ref. `[email protected]` / `[email protected]` cannot be installed due to key id mismatch · Issue #612 · nodejs/corepack
# - https://github.com/nodejs/corepack/issues/612#issuecomment-2629496091
- run: npm i -g corepack@latest && corepack enable
- uses: actions/[email protected]
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
- name: 🚧 Set up project
run: pnpm nuxi prepare
- name: 🧪 Test project
run: pnpm test:ci
timeout-minutes: 10
- name: 📝 Lint
run: pnpm lint
- name: 💪 Type check
run: pnpm test:typecheck