-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 940 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 940 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
.PHONY: verify test integration-test lint-go lint-frontend tidy
verify: tidy lint-go test lint-frontend
tidy:
go work sync
cd controller && go mod tidy
cd agent && go mod tidy
cd cli && go mod tidy
cd bench && go mod tidy
cd tests/integration && go mod tidy
cd agent/cmd/doctor && go mod tidy
lint-go:
@command -v golangci-lint >/dev/null 2>&1 || { echo "install golangci-lint: https://golangci-lint.run"; exit 1; }
for d in controller agent cli bench; do \
(cd $$d && golangci-lint run --timeout=5m --config=../.golangci.yml ./...); \
done
cd agent/cmd/doctor && golangci-lint run --timeout=5m --config=../../../.golangci.yml ./...
test:
cd controller && go test -race ./...
cd agent && go test -race ./...
cd cli && go test -race ./...
integration-test:
cd tests/integration && go test -tags=integration -race -v ./...
lint-frontend:
cd dashboard-v2 && npm ci && npm run lint && npm run type-check && npm run test