default task for Makefile
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
573f78e1b4
commit
3dd50dfe28
1 changed files with 2 additions and 9 deletions
11
Makefile
11
Makefile
|
@ -15,21 +15,14 @@ TAG_VERSION = v$(VERSION)
|
|||
ACT ?= go run -mod=vendor main.go
|
||||
export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
|
||||
|
||||
default: check
|
||||
|
||||
test:
|
||||
go test -cover -short ./...
|
||||
|
||||
check:
|
||||
$(ACT) -orj ci
|
||||
@golangci-lint run
|
||||
@go test -cover ./...
|
||||
|
||||
build: check
|
||||
$(eval export SNAPSHOT_VERSION=$(VERSION))
|
||||
$(ACT) -ra build
|
||||
|
||||
release:
|
||||
$(ACT) -ra local-release
|
||||
|
||||
install: build
|
||||
@cp dist/$(shell go env GOOS)_$(shell go env GOARCH)/act /usr/local/bin/act
|
||||
@chmod 755 /usr/local/bin/act
|
||||
|
|
Loading…
Reference in a new issue