Skip to content

ci: rename validate job to build and update node version matrix #34

ci: rename validate job to build and update node version matrix

ci: rename validate job to build and update node version matrix #34

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Validate pre-built native binaries exist
run: bun run validate-binaries
- name: Lint
run: bun run lint
- name: Build TypeScript
run: bun run build:ts
- name: Validate package contents
run: |
npm pack --dry-run
echo "✅ Package validation complete"
- name: Validate TypeScript compilation
run: |
if [ -f "dist/index.js" ] && [ -f "dist/index.mjs" ] && [ -f "dist/index.d.ts" ]; then
echo "✅ TypeScript compilation successful"
else
echo "❌ TypeScript compilation failed"
exit 1
fi
# Note: Actual tests require Apple Intelligence/Apple Silicon
# and can't run in CI environment. Tests should be run locally
# before pushing or in a self-hosted runner with Apple Silicon.
- name: Test note
run: |
echo "⚠️ Tests require Apple Intelligence and must be run locally"
echo "ℹ️ Run 'bun test' locally before pushing"