Antigravity - Benchmark APIs #33
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: Benchmark Suite | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| benchmark: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Start API Server | |
| run: | | |
| npm run dev -w apps/api & | |
| # Wait for server to start | |
| sleep 5 | |
| env: | |
| STRIPE_SECRET_KEY: sk_test_benchmark | |
| PORT: 3000 | |
| - name: Run Benchmarks (Smoke Test) | |
| run: | | |
| export BENCHMARK_DURATION=2 | |
| export BENCHMARK_CONNECTIONS=5 | |
| npm run benchmark | |
| env: | |
| CI: true |