-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (33 loc) · 739 Bytes
/
justfile
File metadata and controls
43 lines (33 loc) · 739 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
# Build the preflight binary
build:
go build -o bin/preflight ./cmd/preflight
# Run tests with race detection
test:
go test -race ./...
# Run tests with coverage report
test-coverage:
go test -race -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
# Run linters
lint:
golangci-lint run
# Format code
fmt:
goimports -w .
# Format markdown files
fmt-md:
dprint fmt
# Check markdown formatting
check-md:
dprint check
# Run all checks (lint, test, build)
all: lint test build
# Install pre-commit hooks
install-hooks:
hk install --mise
# Run security checks
security:
govulncheck ./...
# Clean build artifacts
clean:
rm -rf bin/ coverage.out coverage.html