GitHub Actions workflow and YAML cheat sheet
Workflow keys
GitHub stores workflow YAML in .github/workflows/. In the official syntax reference, on selects events, jobs defines work, runs-on selects a runner and steps orders the operations inside a job. A step uses run for a shell command or uses for an action.
Read this small example as a sequence:
name: Check
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo "ready"
A push starts the workflow. The test job selects a runner and prints ready. The example doesn’t check out repository files or test an application. Those need explicit steps.
Configuration and evidence
Indentation changes which mapping owns a key. A valid YAML document can still describe the wrong workflow. Check the event, job and step in the simulated run after editing. The local interpreter implements a teaching subset; use GitHub’s current schema and a real repository to validate features outside that subset.