☁️GitHub Actions
Also known as GitHub Workflow, Actions, GHA
The CI/CD tool built into GitHub. You set it up with a YAML file.
Think of it like
Think of it like a robot helper in your project. When you push code, it gets to work.
Example
Lucy adds a small workflow file to her repo. Now each pull request runs her tests on a fresh machine. Nobody can merge until they pass.
Why it matters
It lives where the code already is. Setting up CI takes one file and no extra server.
Definition
Example code
yaml
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci
- run: npm testCommon mistake
Key takeaways
- 1Built into GitHub. No extra server.
- 2A YAML file. In .github/workflows.
- 3Runs on events. Push, pull request, schedule.