Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/ts-sdk-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# CI for the TypeScript SDK (sdk/typescript).
#
# Runs the canonical install + build + test on every supported OS so a
# platform-incomplete or peer-broken package-lock.json fails CI instead of
# shipping.
#
# # `npm ci` is deliberate (not `npm install`): it refuses to mutate the
# lockfile and fails fast on any of the above. The OS matrix is what catches
# a lockfile that only carries one platform's optional native binaries.

name: TS SDK CI

on:
pull_request:
paths:
- "sdk/typescript/**"
- ".github/workflows/ts-sdk-ci.yml"

defaults:
run:
working-directory: sdk/typescript

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: sdk/typescript/package-lock.json
# Strict, lockfile-faithful install. Fails on peer conflicts, an
# out-of-sync lockfile, or missing integrity hashes.
- run: npm ci
# build runs tsup + tsc; test runs vitest (whose native binding is the
# piece that breaks when the lockfile omits this OS's optional binary).
- run: npm run build -w @secureagentics/adrian
- run: npm run test -w @secureagentics/adrian
Loading