DevOps
GitHub Actions Workflow (JSON) JSON Example
A GitHub Actions CI workflow as a JSON example — triggers, jobs, steps, and a build/test matrix. Copy-ready reference for understanding and generating CI pipeline definitions.
Field Reference
nameoptionalstringDisplay name of the workflow in the Actions tabonrequiredobject | stringEvents that trigger the workflow (push, pull_request, schedule, workflow_dispatch)jobsrequiredobjectMap of job id → job; jobs run in parallel unless 'needs' is setjobs.<id>.runs-onrequiredstringRunner image, e.g. ubuntu-latestjobs.<id>.stepsrequiredarray<object>Ordered steps; each is a 'uses' action or a 'run' shell commandVariants
Build matrixRun the same job across multiple versions in parallel.
Common Use Cases
- →Understanding the structure of a CI/CD pipeline definition
- →Generating or templating workflows programmatically
- →Converting workflow YAML to JSON for tooling and validation
github actionsci/cdworkflowpipelinedevopsautomation
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
DevOpsKubernetes Deployment Manifest (JSON)Kubernetes Deployment manifest in JSON with replicas, containers, resources, and probes.DevOpsDocker Compose (JSON)Docker Compose multi-service config in JSON with ports, env, volumes, and depends_on.Web & Standardspackage.json (npm)npm package.json with scripts, dependencies, engines, and project metadata.