Skip to content

Comments

feat: implement quality gates with CI/CD pipeline and pre-commit hooks#5

Merged
KannuSingh merged 10 commits intomasterfrom
feat/implement-quality-gates
Aug 10, 2025
Merged

feat: implement quality gates with CI/CD pipeline and pre-commit hooks#5
KannuSingh merged 10 commits intomasterfrom
feat/implement-quality-gates

Conversation

@KannuSingh
Copy link
Owner

  • Add GitHub Actions workflow for automated typecheck, lint, build, and format checks
  • Configure pre-commit hooks with husky and lint-staged for local quality validation
  • Add husky and lint-staged dependencies for git hooks management
  • Set up automated code formatting and linting before commits

Copilot AI review requested due to automatic review settings August 10, 2025 08:34
@vercel
Copy link

vercel bot commented Aug 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
demo-prepaidgas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2025 9:23am
prepaid-gas-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2025 9:23am

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

KannuSingh and others added 7 commits August 10, 2025 05:03
- Add GitHub Actions workflow for automated typecheck, lint, build, and format checks
- Configure pre-commit hooks with husky and lint-staged for local quality validation
- Add husky and lint-staged dependencies for git hooks management
- Set up automated code formatting and linting before commits
- Reorder CI steps to build packages first, then run typecheck
- Fixes TypeScript compilation errors due to missing declaration files
- Ensures workspace dependencies are built before type checking
- Extract pnpm version from package.json packageManager field for consistency
- Optimize pre-commit hooks to use incremental TypeScript checking
- Replace slow workspace-wide typecheck with faster tsc --noEmit --incremental
- Ensures CI uses same pnpm version as specified in project configuration
- Improve TypeScript checking in pre-commit hooks to check entire project
- Update Node.js version to '20.x' for more specific version control
- Add vercel.json to docs app to fix deployment output directory issue
- Configure correct build output directory as 'dist' for Vocs framework
- Update Node.js version to '20.x' for more consistent builds
- Improve TypeScript checking in pre-commit hooks to validate entire project
- Separate ESLint fixes from TypeScript checking for better performance
- Ensure cross-file type dependencies are properly validated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Remove duplicate '*.{ts,tsx}' pattern in .lintstagedrc.json
- Remove inefficient TypeScript checking from pre-commit hooks
- Keep fast formatting and linting checks for pre-commit
- TypeScript validation handled comprehensively in CI pipeline
…atting

- Update CI workflow to auto-format code before checks
- Reorder CI steps: format -> build -> typecheck -> lint -> format-check
- Apply Prettier formatting across all files for consistency
- Include manual improvements and fixes to codebase
- Ensure CI is more developer-friendly by auto-fixing formatting issues
- Remove auto-format step from CI to avoid hiding formatting issues
- Keep format check to enforce standards on committed code
- Rely on pre-commit hooks for local auto-formatting
- Ensure CI validates actual committed code, not auto-modified version
- Maintain clear separation: local hooks fix, CI validates
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements comprehensive quality gates for the prepaid-gas package repository by adding CI/CD automation and pre-commit hooks to ensure code quality and consistency.

  • Add GitHub Actions CI workflow with automated typecheck, lint, build, and format checks
  • Configure pre-commit hooks using husky and lint-staged for local code quality validation
  • Add formatting automation and dependency management for git hooks

Reviewed Changes

Copilot reviewed 44 out of 60 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml GitHub Actions CI workflow for quality checks
.lintstagedrc.json Lint-staged configuration for pre-commit hooks
package.json Add husky, lint-staged dependencies and prepare script
Multiple files Code formatting changes applied by prettier
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

- Remove complex pnpm version extraction script
- Use pnpm/action-setup@v4's built-in packageManager detection
- Addresses Copilot feedback about robustness and error handling
- Simplifies CI workflow while maintaining version consistency
- Official action handles malformed JSON and missing files gracefully
@KannuSingh KannuSingh merged commit aab2bbc into master Aug 10, 2025
4 checks passed
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