Skip to content

Commit 0f121b0

Browse files
feat: Add .github/workflows/benchmark.yml
1 parent 5269856 commit 0f121b0

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/benchmark.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: API Benchmark (Smoke)
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
benchmark:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: '18'
16+
17+
# In a real scenario, we'd start the server here
18+
# - name: Start API
19+
# run: npm run start:api & sleep 5
20+
21+
- name: Install dependencies
22+
working-directory: ./benchmarks
23+
run: npm install
24+
25+
- name: Run Smoke Benchmark
26+
working-directory: ./benchmarks
27+
run: npm run benchmark:smoke
28+
env:
29+
TARGET_HOST: http://localhost:3000

0 commit comments

Comments
 (0)