File tree Expand file tree Collapse file tree 2 files changed +12
-8081
lines changed Expand file tree Collapse file tree 2 files changed +12
-8081
lines changed Original file line number Diff line number Diff line change 1
- name : Postman Test
1
+ name : Automated API tests using Postman CLI
2
2
3
- on :
4
- pull_request :
5
- branches :
6
- - main
7
- - development
3
+ on : push
8
4
9
5
jobs :
10
- build :
6
+ automated-api-tests :
11
7
runs-on : ubuntu-latest
12
-
13
8
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"
You can’t perform that action at this time.
0 commit comments