chore(deps): bump the production-dependencies group across 1 directory with 13 updates #239
Workflow file for this run
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] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-and-typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Generate Prisma client | |
| working-directory: apps/api | |
| run: npx prisma generate | |
| - run: npx turbo lint | |
| - run: npx turbo typecheck | |
| test-shared: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npx turbo test --filter=@sidclaw/shared | |
| test-api: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16-alpine | |
| env: | |
| POSTGRES_DB: agent_identity_test | |
| POSTGRES_USER: agent_identity | |
| POSTGRES_PASSWORD: agent_identity | |
| ports: | |
| - 5433:5432 | |
| options: >- | |
| --health-cmd "pg_isready -U agent_identity" | |
| --health-interval 5s | |
| --health-timeout 3s | |
| --health-retries 5 | |
| env: | |
| DATABASE_URL: postgresql://agent_identity:agent_identity@localhost:5433/agent_identity_test | |
| NODE_ENV: test | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Generate Prisma client | |
| working-directory: apps/api | |
| run: npx prisma generate | |
| - name: Build dependencies | |
| run: npx turbo build --filter=@sidclaw/shared --filter=@sidclaw/sdk | |
| - name: Run Prisma migrations on test database | |
| working-directory: apps/api | |
| run: npx prisma migrate deploy | |
| - name: Run API tests | |
| run: npx turbo test --filter=@sidclaw/api | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [lint-and-typecheck, test-shared, test-api] | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Generate Prisma client | |
| working-directory: apps/api | |
| run: npx prisma generate | |
| - run: npx turbo build | |
| # test-browser: disabled — browser test suite needs update for current auth flow | |
| # Re-enable when tests/browser/ is fixed | |
| verify-sdk-package: | |
| runs-on: ubuntu-latest | |
| needs: [lint-and-typecheck, test-shared, test-api] | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - run: npm ci | |
| - name: Build SDK | |
| run: npx turbo build --filter=@sidclaw/sdk | |
| - name: Verify package contents | |
| working-directory: packages/sdk | |
| run: | | |
| npm pack --dry-run | |
| # Verify dist exists and has expected files | |
| test -f dist/index.js | |
| test -f dist/index.cjs | |
| test -f dist/index.d.ts | |
| test -f dist/mcp/index.js | |
| test -f dist/webhooks/index.js | |
| test -f README.md | |
| test -f LICENSE | |
| - name: Verify bundle size | |
| working-directory: packages/sdk | |
| run: | | |
| SIZE=$(du -sb dist/ | cut -f1) | |
| echo "Bundle size: $SIZE bytes" | |
| if [ $SIZE -gt 250000 ]; then | |
| echo "ERROR: Bundle size exceeds 250KB" | |
| exit 1 | |
| fi |