-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (36 loc) · 1.36 KB
/
test.yml
File metadata and controls
37 lines (36 loc) · 1.36 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
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run test:skill
- run: npm run test:sync
# Quote the globs so Node handles expansion natively. Node's --test
# glob matching recurses into nested dirs AND matches depth-0 files,
# so it works regardless of the shell's globstar support. (Earlier
# we relied on `shopt -s globstar`, which silently dropped sdk/src
# tests because they weren't listed and dropped depth-0 files on
# systems where globstar isn't enabled.)
- run: node --experimental-test-module-mocks --test --import tsx 'src/**/*.test.ts' 'core/src/**/*.test.ts' 'sdk/src/**/*.test.ts'
- run: npm run test:e2e
- run: npm run test:integration
# Type-check every TypeScript fenced block in sdk/README.md,
# sdk/llms-sdk.txt, and the top-level README.md against the
# published @run402/sdk and @run402/sdk/node types. Fails the PR if
# any example references a method or field that does not exist on
# the actual exports.
- run: npm run test:docs