Loading...
Generate a production-ready .github/workflows/ YAML file for Node.js, Python, Go, Rust, Java, or Docker projects — with lint, test, build, Docker push, and deploy steps.
CI steps
name: CI / CD
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
ci:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm testSave to .github/workflows/ci.yml and commit. Secrets referenced (e.g. KUBECONFIG, AWS_ROLE_ARN) must be added under Settings → Secrets and variables → Actions.
Was this tool helpful?