-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
50 lines (39 loc) · 1.2 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
name: CI
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
# v5/v6 majors run on the node24 action runtime; the v4 majors ran on
# node20, which GitHub now flags with a deprecation annotation.
- uses: actions/checkout@v5
# Reads the pnpm version from package.json "packageManager".
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- name: Install (frozen lockfile)
run: pnpm install --frozen-lockfile
# dist/ is gitignored and @understudy/protocol resolves via dist (the
# npm-publish-correct layout), so the workspace libs must be built
# before anything that imports them typechecks or runs. Topological:
# protocol builds before connector.
- name: Build packages
run: pnpm --filter "./packages/*" build
- name: Typecheck
run: pnpm -r typecheck
- name: Test
run: pnpm -r test
- name: Build
run: pnpm -r build