blob: 3de65faffa6c511517d6246558e02be83629e75a (
plain)
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
|
# Format all files
fmt:
@echo "==> Formatting source"
@gofmt -s -w $(shell find . -type f -name '*.go' -not -path "./vendor/*")
@echo "==> Done"
.PHONY: fmt
# Tidy the go.mod file
tidy:
@echo "==> Cleaning go.mod"
@go mod tidy
@echo "==> Done"
.PHONY: tidy
# Run all tests
test:
@go test -cover -race ./...
.PHONY: test
# Lint the project
lint:
@golangci-lint run ./...
.PHONY: lint
# Run CI tasks
ci: lint test
.PHONY: ci
|