Skip to content

Commit

Permalink
default task for Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Unit Test committed Feb 18, 2020
1 parent 36bc13c commit b310767
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b310767

Please sign in to comment.