Skip to content

[Feature Request] - Add GitHub Actions CI Pipeline (Build Check) #1

@Jared-Krajewski

Description

@Jared-Krajewski

Feature Description:

Add a GitHub Actions CI workflow that automatically runs a production build check on every pull request to main and development. Linting and formatting are already enforced locally via Husky pre-commit hooks (lint-staged runs ESLint + Prettier on staged files).

Problem it Solves:

Husky pre-commit hooks protect individual commits on a contributor's local machine, but they can be bypassed or may not catch every build-breaking issue (e.g., a bad import in a file that wasn't staged). A CI build step on the PR level provides a hard gate that cannot be skipped and runs in a clean environment.

Proposed Solution:

A single GitHub Actions job that:

  1. Checks out the repository
  2. Sets up Node.js with caching
  3. Installs dependencies (npm ci)
  4. Runs npx tsc --noEmit (TypeScript type-check — fast, no output artifacts)
  5. Runs npm run build (full Next.js production build — catches import errors, missing env types, etc.)

The job should trigger on:

  • pull_request targeting main and development

Optionally, add a docker build job to catch container build failures

Alternatives Considered:

Additional Context:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions