GitHub Actions and Jenkins: run your tests on every push
A pipeline file tells a server when to run your tests and what to do with the results. Read and write a small one with a trigger, a job and steps.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a standing order. A shop owner leaves a note: every morning, open the door, count the stock and tell me what is missing. The staff do it without being asked.
The note says when, where and what.
A is that note for a . Tom, the tester at Daily List, a to-do list app, writes one that says run the tests whenever someone pushes.
The picture is only a first way in. It will not fit every detail, so the next levels give the exact words and show where the picture stops working.
PLAIN WORDS · 1 in this section
- workflow
- the steps a piece of work follows, start to finish
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Telling a when to run tests, on what machine and with which steps, like a standing order.
- Trigger
- Job
- Steps
- Report
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The note | The workflow file |
| Every morning | The trigger |
| Open, count, tell | The steps |
| The report to the owner | The artifact |
WHERE THIS PICTURE STOPS
- A staff member can improvise, but a server only does what the file says.
- A note is read once, but the file runs on every push.
- Staff share a shop, but a run starts on a clean machine.
HOOK
Trigger, job, steps, report.
TELL A FRIEND
A standing order: when, where, what, and a report.
OFTEN MIXED UP WITH Build servers and pipelines in practice: Jenkins, GitLab CI and GitHub Actions compared. That topic describes build servers and pipelines in general. This one reads and writes one small file.
PRACTISE AND KEEP
Sources for this topic — 1 source
- Market practice
Workflow syntax for GitHub Actions (GitHub Docs) ↗ — GitHub · GitHub Docs: a workflow is a YAML file with a trigger set by on, jobs that each name a runner with runs-on, and ordered steps that either use an action or run a command (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.