CI/CD Overview
Continuous Integration and Continuous Deployment automate testing and releasing software.
Official docs
Pipeline Stages
- Build — compile/package the application
- Test — run unit, integration, and e2e tests
- Deploy — push to staging/production
GitHub Actions Example
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test