1
0
Fork 0
mirror of https://github.com/Luzifer/duplicity-backup.git synced 2024-12-20 18:41:21 +00:00
duplicity-backup/Makefile
Knut Ahlers d4faeb256f
Replace deprecated CI
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-08-21 14:01:24 +02:00

27 lines
547 B
Makefile

default:
install:
go install -a -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
lint:
golangci-lint run ./...
test:
go test -v ./...
publish:
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
bash golang.sh
# -- Vulnerability scanning --
trivy:
trivy fs . \
--dependency-tree \
--exit-code 1 \
--format table \
--ignore-unfixed \
--quiet \
--scanners config,license,secret,vuln \
--severity HIGH,CRITICAL \
--skip-dirs docs