-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.24 KB
/
Copy pathci.yml
File metadata and controls
47 lines (38 loc) · 1.24 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: ["22", "24"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
# Some npm versions gate install scripts; esbuild needs its postinstall
# to wire the platform binary used by tsx and vitest.
# Some npm versions gate install scripts; esbuild and node-pty both need
# their postinstall steps (platform binary wiring / native compile).
- name: Install dependencies
run: npm install && npm rebuild esbuild && npm rebuild node-pty
- name: Typecheck
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Unit & integration tests (offline, mock model)
run: npm test
- name: CLI smoke
run: |
node dist/cli/index.js --version
node dist/cli/index.js --help > /dev/null
TINYCODE_MODEL=mock TINYCODE_HOME="$PWD/.tmp/ci-home" node dist/cli/index.js -p "hello" | grep "TinyCode mock model"