Forked from soufiane-bouchaara/Newman-github-actions.yml
Created
September 20, 2022 20:43
-
-
Save CarlinGebyte/fde592e2d77a1f5ca9dd71fb16362f6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Newman Test Run | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
jobs: | |
newman: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: '12' | |
collectionID: 10954437-8cb0d465-dff6-4319-a607-caad24998335 | |
environmentID: 98798-a974f882-8ecg0-4c80-9901-a583778393987a | |
- run: npm install -g newman | |
- run: newman run "https://api.getpostman.com/collections/${{collectionID}}?apikey=${{ secrets.POSTMANAPIKEY }}" --environment "https://api.getpostman.com/environments/${{ environmentID }}?apikey=${{ secrets.POSTMANAPIKEY }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment