Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CarlinGebyte/fde592e2d77a1f5ca9dd71fb16362f6c to your computer and use it in GitHub Desktop.
Save CarlinGebyte/fde592e2d77a1f5ca9dd71fb16362f6c to your computer and use it in GitHub Desktop.
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