Appearance

Visual style

Mode
Theme
Accent
Advanced
Text sizeScales the whole site
16 px
Reduce motionReduce animations or match your system
Separate light and darkChoose a theme, accent and font for each
50

Technology · Cloud & DevOps

CI/CD with GitHub Actions

GitHub Actions is GitHub's automation and CI/CD platform. Its documentation describes YAML workflows triggered by repository events, made of jobs that run on hosted or self-hosted runners, with matrix strategies, environments, secrets and reusable workflows.

In practice

How I use GitHub Actions

I maintain CI/CD pipelines for the Ekonavi platform with GitHub Actions: a matrix across the monorepo's apps, deploying each to staging on Cloudflare Workers and promoting to production. The cross-service Playwright end-to-end suite I set up runs alongside it.

Pipeline structure

# Illustrative structure, simplified; app names are placeholders
jobs:
  deploy-staging:
    strategy:
      matrix:
        app: [storefront, seller-dashboard, api]
    steps:
      - uses: actions/checkout@v4
      - uses: pnpm/action-setup@v4
      - run: pnpm install --frozen-lockfile
      - run: pnpm turbo run build --filter=${{ matrix.app }}...
      - run: pnpm --filter ${{ matrix.app }} exec wrangler deploy --env staging

  e2e:
    needs: deploy-staging
    steps:
      - run: pnpm --filter e2e exec playwright test   # against staging URLs

  promote:
    needs: e2e
    environment: production         # scoped secrets, optional approval
    strategy: { matrix: { app: [storefront, seller-dashboard, api] } }
    steps:
      - run: pnpm --filter ${{ matrix.app }} exec wrangler deploy --env production

Principles

  • Production receives the same commit that passed on staging.
  • Bindings and secrets for each environment live in Wrangler config and GitHub environments, not in code.
  • End-to-end tests run against the deployed staging services before promotion, which catches integration problems that unit tests miss.

Trade-offs

Where GitHub Actions shines, and where it doesn't

Strengths

  • Lives next to the code; pull requests show build and test status inline.
  • Matrix jobs make one workflow serve many apps.
  • Environments add approvals and scoped secrets for production.

Limitations

  • Complex workflows become hard to debug without local reproduction.
  • Minutes on hosted runners add up for large monorepos without caching and change detection.

Sources

Official documentation

General descriptions on this page are based on the official documentation linked below. Experience notes are my own.

FAQ

GitHub Actions questions

What does a staging-to-production pipeline look like?

Every merge builds and deploys to staging. Automated checks, including end-to-end tests, run against staging. Promotion to production deploys the same commit with production configuration, so what reaches users is exactly what was tested.

How do you avoid rebuilding every app on every commit in a monorepo?

Turborepo's caching and change detection limit builds to what was affected, and the matrix lists apps explicitly so each deploys with its own configuration and secrets.

What is a matrix build in GitHub Actions?

A matrix runs the same job several times with different variables, for example once per app in a monorepo or once per Node version. Each combination runs in parallel as its own job, so one workflow can build, test and deploy many apps consistently.

Need a GitHub Actions developer?

If your project needs GitHub Actions, send a short description of what you're building and where it's stuck. I'll reply with how I'd approach it.