Skip to content

Commit 3b9c3b7

Browse files
committed
fix(ci): resolve golangci-lint and GoReleaser errors
- Update Go version from 1.25.5 to 1.24.0 (matches golangci-lint build) - Add before hook to create dummy frontend directory for embed directive - Update test command to exclude root main.go from test runs
1 parent 06b59a9 commit 3b9c3b7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.goreleaser.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ project_name: dev-cleaner
44
before:
55
hooks:
66
- go mod tidy
7-
- go test ./...
7+
# Create dummy frontend/dist for main.go embed directive
8+
- mkdir -p frontend/dist && touch frontend/dist/.gitkeep
9+
# Test only CLI packages (exclude root main.go which requires frontend/dist)
10+
- go test ./cmd/... ./internal/... ./pkg/...
811

912
builds:
1013
- id: dev-cleaner

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/thanhdevapp/dev-cleaner
22

3-
go 1.25.5
3+
go 1.24.0
44

55
require (
66
github.com/charmbracelet/bubbles v0.21.1-0.20250623103423-23b8fd6302d7

0 commit comments

Comments
 (0)