k8c.io/api/v3@v3.0.0-20230904060738-b0a93889c0b6/Makefile (about) 1 # Copyright 2023 The Kubermatic Kubernetes Platform contributors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 export CGO_ENABLED ?= 0 16 export GOFLAGS ?= -mod=readonly -trimpath 17 export GO111MODULE = on 18 export KUBERMATIC_EDITION ?= ce 19 20 .PHONY: test 21 test: 22 ./hack/run-tests.sh 23 24 .PHONY: build 25 build: 26 go build -v ./... 27 28 .PHONY: lint 29 lint: 30 @# we want tagliatelle to check only CRDs 31 golangci-lint run \ 32 --verbose \ 33 --config .golangci.apis.yml \ 34 ./pkg/apis/kubermatic/... ./pkg/apis/apps.kubermatic/... 35 36 golangci-lint run \ 37 --verbose \ 38 --print-resources-usage \ 39 ./pkg/... 40 41 .PHONY: codegen 42 codegen: 43 ./hack/update-codegen.sh 44 45 .PHONY: verify 46 verify: 47 ./hack/verify.sh 48 49 .PHONY: check-dependencies 50 check-dependencies: 51 go mod tidy 52 go mod verify 53 git diff --exit-code