Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 3.7 KB

File metadata and controls

68 lines (54 loc) · 3.7 KB

GitHub Actions: From CI to CD

← Pets workshop selection Next: Workshop Setup →

GitHub Actions is a powerful automation platform available right in your GitHub repository. With Actions you can build, test, and deploy your code — and automate just about anything else in your software development lifecycle. This workshop walks you through building a complete CI/CD pipeline, starting with running tests on every push and ending with automated deployment to Azure.

Scenario

You're a developer, volunteering for a pet adoption shelter. They have a Flask API and an Astro frontend. They're ready to productionize their app, and deploy it to the cloud! But they also know there's some processes that should be followed to ensure everything flows smoothly. The goal is to work to automate all of those - through the use of GitHub Actions!

Prerequisites

To complete this workshop, you will need the following:

Note

If you have access to GitHub Copilot, it can help you write workflow YAML files. You'll see tips throughout the exercises on how to use it effectively.

Exercises

  1. Workshop Setup — Create your repository from the template
  2. Introduction & Your First Workflow — Create your first workflow and explore the Actions UI
  3. Securing the Development Pipeline — Enable code scanning, Dependabot, and secret scanning
  4. Running Tests — Automate unit and e2e testing with parallel jobs
  5. Caching — Speed up workflows by caching dependencies
  6. Matrix strategies & parallel testing — Test across multiple configurations simultaneously
  7. Deploying to Azure with azd — Set up continuous deployment to Azure
  8. Creating custom actions — Build your own reusable action
  9. Reusable workflows — Share workflow logic across repositories
  10. Required workflows, protection & wrap-up — Enforce standards and protect your branches

Resources

← Pets workshop selection Next: Workshop Setup →