-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (27 loc) · 1.05 KB
/
Copy pathci.yml
File metadata and controls
29 lines (27 loc) · 1.05 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build # build first so cross-package type declarations resolve
- run: pnpm lint
- run: pnpm format:check
- run: pnpm typecheck
- run: pnpm test # includes the 270/270 Hyperon oracle gate
# The site build is where the documentation's TypeScript examples are compiled, by twoslash, against
# packages/*/src. Until now it ran only on a push to main, so an example that no longer matched the
# API was found after merging rather than on the branch that broke it. It also catches the two ways
# the docs build has broken before: a dependency the subset build could not resolve, and prose that
# Vue parsed as a template tag.
- run: pnpm --filter @metta-ts/website docs:build