Skip to content

Commit 71c745c

Browse files
authored
Add Postman CLI workflow for automated API tests
1 parent 5c85ceb commit 71c745c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/postman.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Automated API tests using Postman CLI
2+
3+
on: push
4+
5+
jobs:
6+
automated-api-tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install Postman CLI
11+
run: |
12+
curl -o- "https://dl-cli.pstmn.io/install/linux64.sh" | sh
13+
- name: Login to Postman CLI
14+
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
15+
- name: Run API tests
16+
run: |
17+
postman collection run "49389125-446a8004-3c29-40fe-8d42-2430fcad57d3"

0 commit comments

Comments
 (0)