Demo repository for using GitHub Actions in a CI/CD context.
💡 To control cost and complexity, the demo does not as of now deploy any code to a cloud environment. The main aim is to show additional CI/CD capabilities using GitHub Actions syntax.
- ❗ This is a template repository
- ❗ This demo contains GHEC/GHES-specific features
- The Environments feature is only available for GHEC, GHES (>=v3.1), and public repositories
- If you have a GHEC organization available, then please click Use this template to clone the repo into that organization
- If you do not have a GHEC organization available, please run the demo in this repository. Just make sure to complete the Cleanup steps afterwards 🏡
- Walk through the CI workflow and explain the CI capabilities and syntax (linting, build matrix, ...)
- Make a change e.g. add a new file or make a change to an existing test file
- Commit the change to a new branch
- Create a new PR
- Observe the CI workflow triggering
- Walk through the CD workflow and explain the CD capabilities and syntax (environments, concurrency, ...)
- Merge the PR
- Observe the CD workflow triggering
- Show the deployment history for the repository
- Go to repository Settings --> Branches
- Show how specific jobs can be added as branch protection rules to a branch
- Add a new rule e.g. for
main
where e.g. thelint
job is required to pass
- Add a new rule e.g. for
- If the workflow was run in this repository, perform the following steps:
- Delete any branch protections rules created
- Ensure any PRs created are closed/merged