Валидатор GitHub Actions
Validators & TestersПроверьте YAML workflow перед отправкой: форма on, jobs, runs-on, шаги с run или uses и граф needs, включая обнаружение циклов — каждая проблема сообщается по своему пути. Работает локально в вашем браузере.
(Документация на английском)
What it does
Structurally validates a GitHub Actions workflow before you push it and wait out a failed run: the on: block (string, list or mapping, with known event names), the jobs mapping (non-empty, each job a mapping), runs-on presence (unless the job delegates to a reusable workflow via uses), steps that each do exactly one of run or uses, and the needs graph — unknown references and cycles, with the full cycle chain named. YAML syntax errors surface with the parser’s message. Everything runs locally in your browser.
How to use it
- Paste a workflow into Workflow YAML (left), or tap a chip — Valid workflow, Broken rules, needs cycle — to see each verdict. Sample loads a complete two-job workflow; Clear empties the box.
- The verdict appears on the right: green when the structure holds; otherwise every issue with its path and a plain-language message.
- Copy share link encodes the workflow in the URL.
Examples
The Broken rules chip produces three issues at once:
$.on[1] — unknown event “shoved” · $.jobs.build.needs[0] — unknown job “ghost” · $.jobs.build.steps[0] — step needs run or uses
The needs cycle chip names the chain:
$.jobs — needs cycle: a -> b -> a
A job using a reusable workflow skips the runs-on check:
jobs: { deploy: { uses: org/repo/.github/workflows/w.yml@v1 } } — valid without runs-on.
What is checked (and what deliberately is not)
| Checked | Not checked |
|---|---|
root shape, on and jobs presence |
action versions/pinning |
| known event names, branches shape | expression validity (${{ }}) |
runs-on (or reusable uses) |
runner label availability |
| steps: run xor uses, non-empty | duplicate YAML keys, permissions |
| needs: known targets, acyclic | secrets and environment references |
The tool catches the structural class of failures — the ones that error before your code runs. Semantic checks (does the action exist at that ref) still belong to the platform.