Integrating Cloud Deploy with automated testing
Automated testing is an important part of a source-to-prod workflow. You can use deployment verification after any completed deployment to confirm that your deployment works as expected.
In addition to deployment verification, you can use deploy hooks to reach out to local or remote resources. Sometimes, you need to connect to a third-party service after deployment has been completed. Post-deploy hooks make that possible. As with verification, post-deploy hooks run from a user-defined container. Unlike verification, deploy hooks are intended for actions that only have an effect when they’re run for the first time, for a given release.
In the example in this section, the delivery pipeline uses a post-deploy hook to call an API from the Google PageSpeed Insights (PSI) tool. PSI assesses your website’s user experience across mobile and desktop environments while also providing suggestions to improve performance. This...