The Minimum Worth Having
Start with four gates and add more only when a real incident shows you need one.
- Type checking and linting on every pull request
- Tests for the flows that earn money or hold sensitive data
- One build artefact promoted from staging to production
- A rollback that takes minutes and has been tried
A Compact Starting Point
This workflow checks a Node.js project on every pull request.
name: checks
on: pull_request
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm }
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm buildTreat Database Changes Separately
Code can be rolled back quickly; data often cannot. Make schema changes in backward-compatible steps: add the new structure, move the data, switch the code, and remove the old structure in a later release.



