STAGE 06 / LESSON 03
GitHub Actions and CI/CD
A delivery pipeline can run the same checks for each proposed change.
THE IDEA
Understand it.
Continuous integration (CI) commonly installs dependencies, checks code, runs tests and builds the application. Continuous delivery adds a repeatable path toward release; deployment policy determines when production changes occur.
A GitHub Actions workflow is triggered by events such as a pull request. Give its token only the permissions it needs, use reviewed actions, and protect secrets from untrusted code. Passing checks are useful evidence, not proof of perfect safety.
SEE IT IN CONTEXT
A simple pipeline
Pull request
→ install from lockfile
→ lint + typecheck
→ unit/integration tests
→ build
→ review and protected releaseSeparate checks from production deployment and decide which checks are required before a merge.
LEARN FROM REAL WEBSITES
See it in the real world.
These simplified structures come from public sources. Company systems change, and the sources may describe only one project or an earlier design.
GitHub
Public documentation checked November 2026Continuous checks for Primer
Primer React's public testing guide describes running its checks in continuous integration on GitHub.
- Primer change
- GitHub CI workflow
- Test results
What to learn: A repository workflow can run repeatable checks before changes are accepted.
Read the source: Primer React testing guideMicrosoft
Public workflow checked November 2026A browser test matrix
Microsoft's Playwright repository publishes a GitHub Actions workflow with test jobs across browsers and environments.
- Repository event
- GitHub Actions matrix
- Browser test jobs
What to learn: A matrix runs the same kind of check in multiple environments, making compatibility problems easier to find.
Read the source: Microsoft Playwright test workflowTRY IT YOURSELF
Practice.
Why should a pull request from an untrusted fork not receive production secrets?
Show one possible answer
Its code could read and transmit those secrets. Keep privileged credentials away from untrusted code and use least-privilege workflow permissions.
GO DEEPER