-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
47 lines (38 loc) · 776 Bytes
/
justfile
File metadata and controls
47 lines (38 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
default:
@just --list --unsorted
# Run binary cct via go run
[group('dev')]
cct *args:
go run ./cmd/cct {{args}}
# Build the binary
[group('dev')]
build:
go build -trimpath -ldflags "-X main.version=dev" -o dist/cct ./cmd/cct
# Remove build artifacts
[group('dev')]
clean:
rm -rf dist
# Run tests
[group('dev')]
test:
go test ./...
# Run tests with coverage
[group('dev')]
cover:
go test ./... -coverprofile=coverage.out
go tool cover -func=coverage.out
# Run golangci-lint
[group('dev')]
lint:
golangci-lint run
# Format code
[group('dev')]
fmt:
gofumpt -w .
# Check formatting (CI)
[group('dev')]
fmt-check:
test -z "$(gofumpt -l .)"
# Run the full CI gate locally (format, lint, test)
[group('dev')]
ci: fmt-check lint test