-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 782 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 782 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
KIND_VERSION ?= 0.22.0
KUBERNETES_VERSION ?= 1.29.2
.PHONY: test
test:
go test ./... -coverprofile cover.out
.PHONY: bin
bin: fmt vet
go build -o bin/kubectl-ai
.PHONY: fmt
fmt:
go fmt ./...
.PHONY: vet
vet:
go vet ./...
.PHONY: lint
lint:
golangci-lint run -v ./...
.PHONY: test-e2e-dependencies
test-e2e-dependencies:
mkdir -p ${GITHUB_WORKSPACE}/bin
echo "${GITHUB_WORKSPACE}/bin" >> ${GITHUB_PATH}
# used for kubernetes test
curl -sSL https://dl.k8s.io/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl -o ${GITHUB_WORKSPACE}/bin/kubectl && chmod +x ${GITHUB_WORKSPACE}/bin/kubectl
curl -sSL https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-linux-amd64 -o ${GITHUB_WORKSPACE}/bin/kind && chmod +x ${GITHUB_WORKSPACE}/bin/kind