Skip to content

Instantly share code, notes, and snippets.

@chris
Last active September 11, 2020 17:58
Show Gist options
  • Save chris/69f8a5c7379a11d3aaca08936865dc94 to your computer and use it in GitHub Desktop.
Save chris/69f8a5c7379a11d3aaca08936865dc94 to your computer and use it in GitHub Desktop.
Serverless scripts for running Postman tests
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