Skip to content

Antigravity - Benchmark APIs #33

Antigravity - Benchmark APIs

Antigravity - Benchmark APIs #33

Workflow file for this run

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