Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@ on:
branches: [main]

jobs:
changes:
runs-on: ubuntu-latest
outputs:
go: ${{ steps.filter.outputs.go }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
go:
- '**.go'
- 'go.mod'
- 'go.sum'

build-and-test:
needs: changes
if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,6 +49,8 @@ jobs:
fail_ci_if_error: false

lint:
needs: changes
if: needs.changes.outputs.go == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@ Use these prefixes for commit messages:
- `refactor:` - Code changes that don't fix bugs or add features
- `BREAKING CHANGE:` or `feat!:` - Breaking changes (major version bump)

## Release Workflow
## CI & Release Workflow

Releases are automated with a dual-gate system to avoid unnecessary releases:
**CI** skips Go build/test/lint jobs when only non-Go files change (docs, packaging, workflows). Jobs show as "Skipped" rather than not running, so branch protection still works.

**Releases** are automated with a dual-gate system to avoid unnecessary releases:

**Gate 1 - Path filter:** Only triggers when Go code changes (`**.go`, `go.mod`, `go.sum`)
**Gate 2 - Commit prefix:** Only `feat:` and `fix:` commits create releases
Expand Down