Created
March 1, 2022 19:38
-
-
Save pallocchi/7e3c2bb0edaac5e2fca442f62c04eaa8 to your computer and use it in GitHub Desktop.
Running Postman Tests with CI/CD
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
#!/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