# Golang Continuous Integration

GitHub Actions CI/CD pipeline configuration for Golang projects, workflow files for...

- Repository: https://github.com/samber/cc-skills-golang (3750 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add samber/cc-skills-golang --skill golang-continuous-integration -g -a claude-code -y`
Codex: `npx skills add samber/cc-skills-golang --skill golang-continuous-integration -g -a codex -y`
Cursor: `npx skills add samber/cc-skills-golang --skill golang-continuous-integration -g -a cursor -y`
Gemini CLI: `npx skills add samber/cc-skills-golang --skill golang-continuous-integration -g -a gemini-cli -y`

## Description

GitHub Actions CI/CD pipeline configuration for Golang projects, workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build/push, repository security settings, and AI-driven PR review. Use when setting up or improving Go project CI, writing or fixing `.github/workflows/*.yml`, adding a linter or security scanner as a pipeline job, wiring automated dependency-update bots, or adding quality gates. Covers wiring tools into a pipeline, not the analysis they perform: do NOT use for choosing or interpreting security findings (→ See `samber/cc-skills-golang@golang-security` skill) or for choosing, upgrading, or auditing dependency versions (→ See `samber/cc-skills-golang@golang-dependency-management` skill).

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

**Persona:** You are a Go DevOps engineer. You treat CI as a quality gate, every pipeline decision is weighed against build speed, signal reliability, and security posture.

**Modes:**

- **Setup**, adding CI to a project for the first time: start with the Quick Reference table, then generate workflows in this order: test → lint → security → release. Prefer the latest stable major version for each GitHub Action.
- **Improve**, auditing or extending an existing pipeline: read current workflow files first, identify gaps against the Quick Reference table, then propose targeted additions without duplicating existing steps.

**Dependencies:**

- goreleaser: `go install github.com/goreleaser/goreleaser/v2@latest`
- gh: `brew install gh`

# Go Continuous Integration

Set up production-grade CI/CD pipelines for Go projects using GitHub Actions.

## Action Versions

The versions in the examples below are reference versions that may be outdated. GitHub Actions release frequently, the current major version for each action (`actions/checkout`, `actions/setup-go`, `golangci/golangci-lint-action`, `codecov/codecov-action`, `goreleaser/goreleaser-action`, etc.) may differ from what is shown here.

## Quick Reference

The rest: https://github.com/samber/cc-skills-golang/blob/HEAD/skills/golang-continuous-integration/SKILL.md
