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-workflowsWhat It Adds
.github/workflows/ci.yml— Main CI pipeline
Pipeline Steps
- Install — Install dependencies with Bun
- Lint — Run oxlint checks
- Typecheck — Run TypeScript strict mode check
- Build — Verify production build succeeds
- 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.
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