summaryrefslogtreecommitdiff
path: root/go/2023/Taskfile.yml
diff options
context:
space:
mode:
Diffstat (limited to 'go/2023/Taskfile.yml')
-rw-r--r--go/2023/Taskfile.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/go/2023/Taskfile.yml b/go/2023/Taskfile.yml
new file mode 100644
index 0000000..a07c24c
--- /dev/null
+++ b/go/2023/Taskfile.yml
@@ -0,0 +1,23 @@
+# https://taskfile.dev
+
+version: "3"
+tasks:
+ default:
+ desc: Prints this message
+ cmds:
+ - cmd: task --list-all
+ build:
+ cmds:
+ - cmd: go build -o=out/Advent_of_Code_2023 main.go
+ run:
+ cmds:
+ - cmd: go run main.go {{.CLI_ARGS}}
+ test:
+ cmds:
+ - cmd: go test ./...
+ test:coverage:
+ desc: Runs tests and produce coverage report
+ cmds:
+ - cmd: mkdir --parents out
+ - cmd: go test -coverprofile=out/coverage.out ./...
+ - cmd: go tool cover -html=out/coverage.out