Last active
September 11, 2020 17:58
-
-
Save chris/69f8a5c7379a11d3aaca08936865dc94 to your computer and use it in GitHub Desktop.
Serverless scripts for running Postman tests
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
custom: | |
scripts: | |
commands: | |
smoke-test-dev: "echo 'activating dev serverless DB and running dev smoke test...'; curl --request GET 'https://YOUR-API-URL' > /dev/null 2>&1; sleep 30; npm run test-dev" | |
smoke-test-production: "echo 'running production smoke test...'; npm run test-production" | |
hooks: | |
'after:deploy:finalize': ${self:custom.scripts.commands.smoke-test-${self:provider.stage}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment