Update AGENTS.md #86
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: | |
| test: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install opencode CLI | |
| run: curl -fsSL https://opencode.ai/install | bash | |
| - name: Add opencode to PATH | |
| run: echo "$HOME/.opencode/bin" >> $GITHUB_PATH | |
| - name: Verify opencode | |
| run: opencode --version | |
| - name: Install dependencies | |
| run: pnpm install | |
| # Submodules have dist/ gitignored so they need to be built after checkout. | |
| # libsqlproxy is a workspace package that also needs building (exports from dist/). | |
| - name: Build workspace packages with dist/ exports | |
| run: | | |
| pnpm --filter errore run build | |
| pnpm --filter traforo run build | |
| pnpm --filter opencode-injection-guard run build | |
| pnpm --filter libsqlproxy run build | |
| - name: Generate Prisma + SQL (discord-digital-twin) | |
| run: pnpm generate | |
| working-directory: discord-digital-twin | |
| - name: Generate Prisma + SQL (cli) | |
| run: pnpm generate | |
| working-directory: cli | |
| - name: Build discord-digital-twin | |
| run: pnpm build | |
| working-directory: discord-digital-twin | |
| # --retry 3: some e2e tests have timing sensitivity on CI hardware | |
| # (question tool cleanup races, reply ordering under slower I/O). | |
| - name: Run tests | |
| run: pnpm test -- --run --retry 3 | |
| working-directory: cli | |
| env: | |
| NODE_ENV: test |