diff options
Diffstat (limited to '2023/Go/Taskfile.yml')
| -rw-r--r-- | 2023/Go/Taskfile.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/2023/Go/Taskfile.yml b/2023/Go/Taskfile.yml index a89c4c3..a07c24c 100644 --- a/2023/Go/Taskfile.yml +++ b/2023/Go/Taskfile.yml @@ -1,17 +1,23 @@ # https://taskfile.dev -version: '3' - +version: "3" tasks: - default: - desc: "Prints this message" + 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: - - mkdir --parents out - - go test -coverprofile=out/coverage.out ./... - - go tool cover -html=out/coverage.out + - cmd: mkdir --parents out + - cmd: go test -coverprofile=out/coverage.out ./... + - cmd: go tool cover -html=out/coverage.out |
