-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.28 KB
/
Copy pathci.yml
File metadata and controls
54 lines (42 loc) · 1.28 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
name: CI
# Typecheck + tests on every push to main and every PR. Until now the only workflow was the
# tag-triggered release, so build/test rot (or a contributor's broken PR) was only discovered
# during a signed release run (IMPROVEMENT-PLAN 12.1). CONTRIBUTING.md promises `pnpm test`
# must pass before merge - this enforces it.
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
# macOS matches the release runner so the better-sqlite3 / node-pty electron-rebuild
# postinstall is exercised the same way it will be at release time.
runs-on: macos-14
timeout-minutes: 20
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.11 (node-gyp needs distutils)
uses: actions/setup-python@v6
with:
python-version: '3.11'
- uses: pnpm/action-setup@v6
with:
version: 10
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test