🔄 Tools

CI/CD with GitHub Actions — Auto-Test and Deploy on Push

📅 Jul 5, 2026 ⏱ 3 min read

CI/CD sounds enterprise; it's actually "a robot runs your checks on every push". GitHub gives you the robot free.

The concepts

Your first workflow

# .github/workflows/ci.yml
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 run lint
      - run: npm test
      - run: npm run build

Commit that file — that's the entire setup. Every push now shows a ✓ or ✕ on GitHub; PRs display the checks inline.

The deploy half

Vercel/Netlify/Render already auto-deploy on push (they're CD providers). Actions handles the rest: deploying to a VPS via SSH, publishing packages, scheduled jobs (on: schedule — cron in the cloud, free).

Why freshers should care

A repo with a green checkmark row says "this person works like a professional" louder than any resume adjective — and it takes fifteen minutes.

← All Articles