GitHub Actions part 1: write your first workflow file and read the run log
Save one short file in your project, push it, and watch GitHub run your tests on a fresh machine, then read the log to find the first step that failed.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a timetable pinned on the classroom wall. The sheet says which lesson starts, in which room and in what order. Nobody has to remind the teacher. If a line is indented wrong, the reader follows the wrong lesson.
The sheet is the . The room is the runner. The first lesson is copying the code onto a fresh machine.
Tom, a tester at Daily List, a to-do list app, writes his first timetable.
What it is: GitHub Actions is a service on GitHub's website that runs a from .github/workflows. The file is (YAML Ain't Markup Language) and it lists when to run and which steps to take. A GitHub Actions job and runner is one job on a fresh machine, and a GitHub Actions checkout step copies the project onto it. Jenkins is the neighbour, and Jenkins is a server you install. GitHub Actions reads this file when you push.
Why it matters: A test that only runs on Tom's laptop can pass while the shared branch is broken. The workflow runs the same steps on every push. The log shows the first step that failed, so Leo does not have to guess which command broke.
PLAIN WORDS · 3 in this section
- indented
- moved in from the left edge to group lines
- workflow
- the steps a piece of work follows, start to finish
- github
- a web site that hosts code and runs checks
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 A school timetable pinned in a classroom.
- Timetable
- Room
- Tasks
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The timetable | The workflow file |
| One lesson slot | A job |
| The room for the lesson | The runner |
| Each task in the lesson | A step |
WHERE THIS PICTURE STOPS
- A timetable is for a week, but a workflow starts on an event.
- A room is shared, but a runner is fresh each time.
- A teacher can improvise, but a workflow does only its steps.
HOOK
Timetable, room, tasks.
TELL A FRIEND
A timetable with rooms and tasks.
OFTEN MIXED UP WITH Pipelines for UI tests: run on push, save screenshots, videos and reports. That topic keeps reports from a pipeline. This one writes the first that runs the tests.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
Workflow syntax for GitHub Actions (GitHub Docs) ↗ — GitHub Docs · GitHub Docs workflow syntax: name is an optional label, on lists the events that start a run, jobs holds each job under its own id, runs-on picks the runner such as ubuntu-latest, and steps is an ordered list where each item uses run or uses
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.
- Market practice
Using workflow run logs (GitHub Docs) ↗ — GitHub Docs · GitHub Docs on run logs: the log of each step can be read from the run page and downloaded
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.
- Market practice
GitHub-hosted runners ↗ — GitHub · Hosted execution environment and fresh-runner scope; single CPU container exception.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
- Market practice
setup-python v7 action metadata ↗ — GitHub · Python interpreter setup and cache inputs; current v7 exists, no guessed release.
Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.
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.