Skip to content

Commit 3de2a5f

Browse files
committed
postman CLI
1 parent d5b459e commit 3de2a5f

File tree

2 files changed

+12
-8081
lines changed

2 files changed

+12
-8081
lines changed

.github/workflows/postman-tests.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
name: Postman Test
1+
name: Automated API tests using Postman CLI
22

3-
on:
4-
pull_request:
5-
branches:
6-
- main
7-
- development
3+
on: push
84

95
jobs:
10-
build:
6+
automated-api-tests:
117
runs-on: ubuntu-latest
12-
138
steps:
14-
- name: Check out code
15-
uses: actions/checkout@v2
16-
17-
- name: Set up Node.js
18-
uses: actions/setup-node@v2
19-
with:
20-
node-version: 16
21-
22-
- name: Install Newman
23-
run: npm install -g newman
24-
25-
- name: Run Postman tests
26-
run: newman run ./v1.0.0-alpha.postman_collection.json
9+
- uses: actions/checkout@v3
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 "21643141-29799011-ca72-4eef-beb3-c2925281c1a4"

0 commit comments

Comments
 (0)