-
Notifications
You must be signed in to change notification settings - Fork 315
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 668 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (22 loc) · 668 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
SHELL = bash
VERSION ?= 3.2.0
.PHONY: test
test:
./tests/test-checksec.sh
.PHONY: coverage
coverage:
go test ./pkg/... -count=1 -coverpkg=./pkg/... -coverprofile=coverage.out -covermode=count
go tool cover -func=coverage.out
.PHONY: build-image
build-image:
docker build -t slimm609/checksec .
.PHONY: build
build:
goreleaser build --snapshot --clean
# Cut a release by pushing a tag. The release workflow
# (.github/workflows/release.yml) then builds, signs (keyless cosign), and
# publishes the GitHub release. Run a local dry run first with `make build`.
.PHONY: release
release:
git tag $(VERSION) -m "release of $(VERSION)"
git push origin $(VERSION)