test: update openrouter branding assertion #3
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: | |
| pull_request: | |
| branches: [main, ts-rewrite] | |
| push: | |
| branches: [main, ts-rewrite] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run typecheck | |
| # Run tests with CI-optimized settings: | |
| # --maxWorkers=2: Limit parallelism to reduce resource contention | |
| # --detectOpenHandles surfaces lingering async resources | |
| # Use per-test timeout and open-handle detection to avoid hangs | |
| - run: npm run test -- --maxWorkers=2 --detectOpenHandles --testTimeout=20000 | |
| - run: npm run build |