Skip to content

Commit

Permalink
Merge pull request #7 from askherconsulting/askherconsulting-patch-3
Browse files Browse the repository at this point in the history
test postman CLI ci/cd command
  • Loading branch information
askherconsulting committed Oct 10, 2022
2 parents 6462398 + 9e9bc42 commit 6398aca
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Automated API tests using Postman CLI

on: push

jobs:
automated-api-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Install Postman CLI
run: |
powershell.exe -NoProfile -InputFormat None -ExecutionPolicy AllSigned -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://dl-cli.pstmn.io/install/win64.ps1'))"
- name: Login to Postman CLI
run: postman login --with-api-key ${{ secrets.POSTMAN_API_KEY }}
- name: Run API tests
run: |
postman collection run "18914905-52993e1b-778b-45a9-b339-8570c52876d4" -e "18914905-208d4126-0db5-4873-ad01-4cb3c4ee93b6"

0 comments on commit 6398aca

Please sign in to comment.