Claude Code How-To Guide

name: Setup CI/CD Pipeline description: Implement pre-commit hooks and GitHub Actions for quality assurance tags: ci-cd, devops, automation


Setup CI/CD Pipeline

Implement comprehensive DevOps quality gates adapted to project type:

  1. Analyze project: Detect language(s), framework, build system, and existing tooling
  2. Configure pre-commit hooks with language-specific tools:
  3. Formatting: Prettier/Black/gofmt/rustfmt/etc.
  4. Linting: ESLint/Ruff/golangci-lint/Clippy/etc.
  5. Security: Bandit/gosec/cargo-audit/npm audit/etc.
  6. Type checking: TypeScript/mypy/flow (if applicable)
  7. Tests: Run relevant test suites
  8. Create GitHub Actions workflows (.github/workflows/):
  9. Mirror pre-commit checks on push/PR
  10. Multi-version/platform matrix (if applicable)
  11. Build and test verification
  12. Deployment steps (if needed)
  13. Verify pipeline: Test locally, create test PR, confirm all checks pass

Use free/open-source tools. Respect existing configs. Keep execution fast.


Last Updated: April 9, 2026