feat: add reproducible API benchmark suite #1
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: API benchmark smoke | |
| on: | |
| pull_request: | |
| paths: | |
| - "apps/api/**" | |
| - "benchmarks/**" | |
| - "package.json" | |
| - "package-lock.json" | |
| - ".github/workflows/benchmark-api-smoke.yml" | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "apps/api/**" | |
| - "benchmarks/**" | |
| - "package.json" | |
| - "package-lock.json" | |
| jobs: | |
| benchmark-smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run API test suite | |
| run: npm run test | |
| - name: Run smoke benchmark gate | |
| run: npm run benchmark:smoke |