GitHub Workflows

GitHub Actions CI pipeline with lint, typecheck, build, and secret scanning.

Overview

Adds a GitHub Actions CI pipeline for linting, type checking, build verification, and secret scanning.

Prerequisites

None.

Installation

npx ds-start init my-app --github-workflows
# or add to existing project
npx ds-start add github-workflows

What It Adds

  • .github/workflows/ci.yml — Main CI pipeline

Pipeline Steps

  1. Install — Install dependencies with Bun
  2. Lint — Run oxlint checks
  3. Typecheck — Run TypeScript strict mode check
  4. Build — Verify production build succeeds
  5. Secret Scan — Scan for accidentally committed secrets

Environment Variables

None required. The workflow uses GitHub Actions built-in environment.

Usage

The CI pipeline runs automatically on push and pull request events. No configuration needed after installation.

.github/workflows/ci.yml
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: oven-sh/setup-bun@v2

      - run: bun install --frozen-lockfile

      - name: Lint
        run: bun run lint

      - name: Typecheck
        run: bun run typecheck

      - name: Build
        run: bun run build

On this page