-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
45 lines (42 loc) · 1.23 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
verify:
name: macOS · Node ${{ matrix.node }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
node: [20.19.0, 22]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- name: Install required test tooling
run: |
if ! command -v rg >/dev/null; then
brew install ripgrep
fi
- run: npm run build:agent
- run: npm test
env:
FORCE_COLOR: "1"
- run: npm run typecheck
- run: npm run build
- name: Verify published CLI package in a clean temporary prefix
run: |
mkdir -p .release-check
npm pack ./packages/cli --pack-destination .release-check
tarball=$(printf '%s\n' .release-check/*.tgz)
npm install --global --prefix "$RUNNER_TEMP/do-code-global" "$tarball"
"$RUNNER_TEMP/do-code-global/bin/do-code" --help
MODEL_API_KEY=ci MODEL_BASE_URL=http://127.0.0.1:9/v1 MODEL_ID=ci \
"$RUNNER_TEMP/do-code-global/bin/do-code" doctor