Skip to content

Feat/policy guardrails #52

Feat/policy guardrails

Feat/policy guardrails #52

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# One run per branch; new commits cancel in-flight runs on the same ref.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
name: build + typecheck + test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.4.0
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm -r build
- name: Typecheck
run: pnpm -r typecheck
- name: Test
# Live integration tests against MongoDB / Anthropic auto-skip when their
# env vars are absent. CI runs the offline suite by default.
run: pnpm -r test