Skip to content

Commit ac06cc6

Browse files
authored
feat: added parent Taskfile and updated task names (#8)
* feat: added parent Taskfile and updated task names
1 parent 7666862 commit ac06cc6

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Taskfile.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: '3'
2+
3+
includes:
4+
go: ./go

Go/Taskfile.yml renamed to go/Taskfile.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ vars:
99

1010
tasks:
1111

12-
go-test:
12+
test:
1313
desc: 'runs `go test` in race detection and atomic coverage collection mode'
1414
dir: '{{.USER_WORKING_DIR}}'
1515
cmds:
1616
- cmd: go test -v ./... -race -coverprofile={{.COVER_FILE}} -covermode=atomic
1717

18-
go-cover:
19-
desc: 'runs the go-test task, the `cover` Go tool and displays the generated HTML report'
18+
cover:
19+
desc: 'runs the test task, the `cover` Go tool and displays the generated HTML report'
2020
dir: '{{.USER_WORKING_DIR}}'
2121
deps:
22-
- task: go-test
22+
- task: test
2323
cmds:
2424
- cmd: go tool cover -html={{.COVER_FILE}} -o {{.COVER_HTML}}
2525
- cmd: cmd /c start {{.COVER_HTML}}
2626
platforms: [windows]
2727

28-
go-lint:
28+
lint:
2929
desc: 'runs `golangci-lint` with the first recursively found config file'
3030
dir: '{{.USER_WORKING_DIR}}'
3131
vars:

0 commit comments

Comments
 (0)