summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJavier Romero <root@jromero.codes>2020-09-29 22:39:45 +0200
committerGitHub <noreply@github.com>2020-09-29 22:39:45 +0200
commit729adec5e52eb8bf83fb3ea1cc0d1b510350e09e (patch)
treee04182eba287cbf06baaf47526715074ee7dd85a /Makefile
parentFix test target (#375) (diff)
downloadforgejo-act-729adec5e52eb8bf83fb3ea1cc0d1b510350e09e.tar.xz
forgejo-act-729adec5e52eb8bf83fb3ea1cc0d1b510350e09e.zip
Fix path for local node12 actions (#371)
Fixes #185 Signed-off-by: Javier Romero <root@jromero.codes>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41b83fe..06744a5 100644
--- a/Makefile
+++ b/Makefile
@@ -7,12 +7,16 @@ PATCH_VERSION = $(word 3, $(subst ., ,$(word 1,$(subst -, , $(VERSION)))))
NEW_VERSION ?= $(MAJOR_VERSION).$(MINOR_VERSION).$(shell echo $$(( $(PATCH_VERSION) + 1)) )
ACT ?= go run main.go
-export GITHUB_TOKEN = $(shell cat ~/.config/github/token)
+export GITHUB_TOKEN := $(shell cat ~/.config/github/token)
.PHONY: build
build:
go build -ldflags "-X main.version=$(VERSION)" -o dist/local/act main.go
+.PHONY: format
+format:
+ go fmt ./...
+
.PHONY: test
test:
go test ./...