-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (39 loc) · 838 Bytes
/
Copy pathjustfile
File metadata and controls
52 lines (39 loc) · 838 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
48
49
50
51
52
# Task runner for gitlab.com/phpboyscout/go/controls
# Default: tidy, lint, test
default: tidy lint test
# Tidy modules
tidy:
go mod tidy
# Unit tests with coverage
test:
go test ./... -cover
# Race detector
test-race:
go test -race ./...
# E2E BDD (Godog) tests
test-e2e:
INT_TEST_E2E=1 go test ./test/e2e/... -v -timeout 10m
# Lint
lint:
golangci-lint run
# Auto-fix lint
lint-fix:
golangci-lint run --fix
# Regenerate mocks
mocks:
mockery
# HTML coverage report
coverage:
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
# Benchmarks
bench:
go test -bench=. -benchmem ./...
# Vulnerability scan
vuln:
govulncheck ./...
# Find unreachable exported symbols
deadcode:
deadcode ./...
# Full local CI: tidy, test, race, lint
ci: tidy test test-race lint