ci: skip go vet/test/golangci-lint when no .go files changed #334
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper#334
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Skip Go toolchain steps in CI when no
.gofiles were modified in the push/PR.Why
Speeds up CI for documentation-only, config-only, or frontend-only changes. Running
go vet,go test, andgolangci-linton an unchanged codebase is wasted cycles.How
In each CI workflow that invokes Go tooling, add a path filter or step conditional:
Same pattern for
go testandgolangci-lint.Alternatives considered
git diff --name-only— works but is less idiomatic in Forgejo Actions. Thechanged-filesaction is cleaner.ci optimizationto ci: skip go vet/test/golangci-lint when no .go files changed