Skip to content

Instantly share code, notes, and snippets.

@pallocchi
Created March 1, 2022 19:38
Show Gist options
  • Save pallocchi/7e3c2bb0edaac5e2fca442f62c04eaa8 to your computer and use it in GitHub Desktop.
Save pallocchi/7e3c2bb0edaac5e2fca442f62c04eaa8 to your computer and use it in GitHub Desktop.
Running Postman Tests with CI/CD
#!/bin/sh
set -eu pipefail
echo "Attempting to connect to cicd-postman-tests-api"
until $(nc -zv cicd-postman-tests-api 5050); do
printf '.'
sleep 5
done
echo "Connected to cicd-postman-tests-api!"
newman run /src/postman-collection.json
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment