-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
59 lines (46 loc) · 1008 Bytes
/
Makefile
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
53
54
55
56
57
58
59
# SPDX-FileCopyrightText: 2025 Red Hat, Inc. <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
build:
goreleaser release --snapshot --clean
release:
goreleaser release --clean
.PHONY: release
check: lint test
.PHONY: check
lint:
pre-commit run \
--show-diff-on-failure \
--from-ref "origin/main" \
--to-ref "HEAD"
.PHONY: lint
BIN_PATH ?= dist/ocm-addons_linux_amd64_v1/ocm-addons
license-check:
lichen -c .lichen.yaml "${BIN_PATH}"
.PHONY: license-check
golangci-lint:
golangci-lint run -v --new-from-rev HEAD --fix
.PHONY: golangci-lint
tidy:
go mod tidy
.PHONY: tidy
verify:
go mod verify
.PHONY: verify
check-flake:
nix flake check --all-systems
.PHONY: check-flake
test: test-units test-integration
test-units:
go test -v -race -count=1 -v ./cmd/... ./internal/...
.PHONY: test-units
test-integration:
ginkgo -r -v \
--randomize-all \
--randomize-suites \
--fail-on-pending \
--keep-going \
--race \
--trace \
integration
.PHONY: test-integration