-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.69 KB
/
Copy pathci.yml
File metadata and controls
67 lines (56 loc) · 1.69 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
name: CI
# Typecheck + unit tests for the Next.js apps. Lint is deliberately not here yet:
# the tree has a large pre-existing eslint backlog; it joins CI once that is
# cleared so the badge means something.
on:
push:
branches: [main]
paths:
- "apps/desktop-ui/**"
- "apps/web/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "patches/**"
- ".nvmrc"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "apps/desktop-ui/**"
- "apps/web/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- "patches/**"
- ".nvmrc"
- ".github/workflows/ci.yml"
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
web:
name: typecheck + test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@v6
# version intentionally omitted — taken from package.json "packageManager"
- name: Set up Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck desktop-ui
run: pnpm --filter @mydevtools/desktop-ui exec tsc --noEmit
- name: Typecheck web
run: pnpm --filter @mydevtools/web exec tsc --noEmit
- name: Unit tests (desktop-ui)
run: pnpm --filter @mydevtools/desktop-ui exec jest --ci