Skip to content

Commit 26da15a

Browse files
committed
Add CI workflow for Newman API smoke tests
1 parent 96b76e8 commit 26da15a

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/api-smoke.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: API Smoke (Postman + Newman)
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
api-smoke:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "20"
22+
cache: "npm"
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run API smoke tests (Newman)
28+
run: npm run api:smoke
29+
30+
- name: Upload Newman reports
31+
if: always()
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: newman-reports
35+
path: newman/reports

0 commit comments

Comments
 (0)