Define an automation workflow in YAML.
Section: Kubernetes YAML patterns
Minimal GitHub Actions workflow
yaml
yaml
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm testExplanation
GitHub Actions uses YAML, making it a prime topic for a YAML cheat sheet collection.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Kubernetes YAML patterns
Minimal Kubernetes Deployment
Define a basic Deployment resource in YAML.
Preview resource changes
Show what would change before applying a manifest.
Inspect Kubernetes manifest fields
Read documentation for manifest fields from the terminal.