forked from chainloop-dev/chainloop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (46 loc) · 1.12 KB
/
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
include common.mk
VERSION=$(shell git describe --tags --always)
API_PROTO_FILES=$(shell find api -name *.proto)
.PHONY: api
# generate api proto
api:
cd ./pkg/attestation/crafter/api && buf generate
make -C ./app/controlplane api
make -C ./app/artifact-cas api
.PHONY: config
# generate config proto
config:
cd ./pkg/credentials/api && buf generate
cd ./app/controlplane/pkg/conf && buf generate
make -C ./app/controlplane config
make -C ./app/artifact-cas config
.PHONY: generate
# generate
generate: config api
go generate ./...
.PHONY: all
# generate all
all:
make generate;
make api;
.PHONY: lint
# run linter
lint:
golangci-lint run
buf lint
make -C ./app/controlplane lint
make -C ./app/cli lint
make -C ./app/artifact-cas lint
# make -C ./extras/dagger lint
.PHONY: test
# All tests, both unit and integration
test:
go test ./...
.PHONY: build_devel
# build for development testing
build_devel:
goreleaser build --snapshot --clean --single-target
.PHONY: build_devel_container_mages
# build container images for development testing
build_devel_container_mages:
goreleaser release --clean --snapshot --skip sign,sbom