Skip to content

ci: add git hooks and GitHub Actions CI pipeline - #3

Merged
mitoperni merged 2 commits into
mainfrom
chore/ci-and-git-hooks
Feb 3, 2026
Merged

mitoperni merged 2 commits into
mainfrom
chore/ci-and-git-hooks

Conversation

@mitoperni

Copy link
Copy Markdown
Owner

Description

Add comprehensive CI/CD infrastructure with automated code quality checks for commits and pull requests.

Type of Change

  • New feature
  • Bug fix
  • Refactoring
  • Documentation
  • Styling

Changes Made

Git Hooks (Husky)

  • pre-commit: Runs lint-staged to apply ESLint fixes and Prettier formatting on staged files
  • commit-msg: Validates commit messages follow Conventional Commits format

GitHub Actions CI Pipeline

  • Lint: ESLint + Prettier check
  • Type Check: TypeScript compiler validation
  • Test: Vitest with coverage report
  • Build: Next.js production build (runs only if all checks pass)

New Scripts

  • npm run type-check - Run TypeScript type checking
  • npm run validate - Run type-check, lint, and tests in sequence

Configuration Files

  • .husky/pre-commit - Pre-commit hook
  • .husky/commit-msg - Commit message hook
  • commitlint.config.mjs - Commitlint configuration
  • .github/workflows/ci.yml - GitHub Actions workflow

Documentation

  • Updated README with Git Workflow section
  • Updated PR template with CI checklist

Screenshots (if applicable)

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No TypeScript errors
  • Tests added/updated
  • All CI checks pass
  • Tested on different screen sizes
  • Loading states implemented
  • Error handling in place

- Add Husky for git hooks management
- Add lint-staged for pre-commit linting/formatting
- Add commitlint for conventional commit validation
- Add GitHub Actions CI workflow (lint, typecheck, test, build)
- Add type-check and validate scripts
- Update PR template with CI checklist
- Update README with git workflow documentation
@mitoperni mitoperni self-assigned this Feb 3, 2026
@mitoperni
mitoperni merged commit aaf0775 into main Feb 3, 2026
4 checks passed
@mitoperni
mitoperni deleted the chore/ci-and-git-hooks branch February 5, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant