chore: update dependencies and refactor example responses to return s… #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |