Skip to content
cosmodev ~/tools/gh-actions-validator

Validator GitHub Actions

Validators & Testers

Verifică YAML-ul unui workflow înainte de push: forma lui on, jobs, runs-on, pași cu run sau uses și graful needs, inclusiv detectarea ciclurilor — fiecare problemă este raportată la calea ei. Rulează local în browserul tău.

Încearcă:

(Documentație în engleză)

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

  1. 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.
  2. The verdict appears on the right: green when the structure holds; otherwise every issue with its path and a plain-language message.
  3. 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.

Cod sursă14 limbi

100% pe partea clientului · datele tale nu părăsesc niciodată browserul. Ți s-a părut util? Partajează-l cu un coleg.