GitHub Actions YAML Examples
6 production-ready workflow files for GitHub Actions — covering language CI matrices, Docker image publishing, cloud deployments, and automated dependency updates.
GitHub Actions workflow files live in the .github/workflows/ directory of your repository and are
written in YAML. Each file defines one workflow — a set of jobs triggered by events like push,
pull_request, or a cron schedule. Workflow files must be valid YAML with strict indentation;
use the DotYAML validator
to catch errors before pushing. The one exception is Dependabot, which uses a separate file at
.github/dependabot.yml.
Node.js CI
Matrix testing across Node 18, 20, and 22 with npm ci, build, and test steps.
GitHub ActionsPython CI
Matrix testing across Python 3.10, 3.11, and 3.12 with pytest and flake8 linting.
GitHub ActionsGo CI
Build, test with go test -v, and vet. Minimal and fast CI setup for Go projects.
GitHub ActionsDocker Build & Push
Build and push Docker images to GitHub Container Registry (GHCR) with metadata-action auto-tagging.
GitHub ActionsDeploy to AWS
Sync a static site to S3 and invalidate CloudFront using aws-actions and GitHub secrets.
GitHub ActionsDependabot Config
Automated npm and GitHub Actions dependency updates with PR grouping and major-version ignore rules.
Dependabot