From 2d06e8e09c0ffe41154392be72094d3148a2ad62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20P=C4=99czkowski?= Date: Thu, 11 Nov 2021 16:17:58 +0100 Subject: [PATCH] Add taskfile --- .gitignore | 1 + Taskfile.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Taskfile.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c795b05 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..7c09d02 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,26 @@ +version: '3' + +env: + go_dir: + +tasks: + pull: + cmds: + - go mod download + silent: true + test: + cmds: + - go test ./app + - go test ./commands + - go test ./config + - go test ./echo + build: + cmds: + - mkdir -p build + - go build -o build/grm + + install: + deps: + - build + cmds: + - go install . \ No newline at end of file