Skip to content

Commit 6838cdf

Browse files
authored
Create postman.yml
1 parent bd0ab82 commit 6838cdf

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 "${{ github.workspace }}/postman/collections/JSON-SERVER.json"

0 commit comments

Comments
 (0)