Created
July 4, 2020 13:24
-
-
Save soufiane-bouchaara/358fafe93df6b44d2f9bd86210197043 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
Very helpful, your work saves me <3