aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Dmitriy Shirchenko <shirchen@users.noreply.github.com> 2021-05-17 15:14:22 -0700
committerGravatar GitHub <noreply@github.com> 2021-05-17 15:14:22 -0700
commitb627e361379b89802df4930abbc64ce26bd8f323 (patch)
tree90e48cb38da07f4b431be463c2c72fd887a891c7 /Makefile
parent3db7a7fc8ab9efc1cdb88dcfd3b974581c203236 (diff)
downloadsally-b627e361379b89802df4930abbc64ce26bd8f323.tar.gz
sally-b627e361379b89802df4930abbc64ce26bd8f323.tar.zst
sally-b627e361379b89802df4930abbc64ce26bd8f323.zip
Set up CI (#45)
Set up CI with GitHub actions.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index efa0d0a..7264206 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,11 @@ pretest: lint vet staticcheck
test: pretest
go test -race ./...
+.PHONY: cover
+cover:
+ go test -coverprofile=cover.out -covermode=atomic -coverpkg=./... ./...
+ go tool cover -html=cover.out -o cover.html
+
.PHONY: clean
clean:
rm -rf _tmp