Summary

In this chapter, we reviewed the meaning and high-level details of CI and CD. I also discussed some best practices on how to organize application code in serverless projects to help set up and run unit tests. From there, I covered how to set up our unit tests to run on every commit using CircleCI.

Finally, we worked through the entire process of setting up CircleCI to perform automated deployments triggered by changes to the production branch. You learned some of the nuances of controlling CI execution via environment variables and where to configure sensitive settings such as database passwords and AWS keys.

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.