-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathTaskfile.yaml
44 lines (32 loc) · 895 Bytes
/
Taskfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'
includes:
docs:
taskfile: ./docs/Taskfile.yaml
dir: ./docs
tasks:
build:
env:
GORELEASER_CURRENT_TAG: "v0.0.0"
cmd: goreleaser build --snapshot --clean --single-target --output mach-composer
download:
cmd: go mod download
tidy:
cmd: go mod tidy -v
format:
cmds:
- go fmt ./...
- terraform fmt -recursive -write=true .
lint:
cmd: golangci-lint run --issues-exit-code=0 --timeout=5m --build-tags testing
generate:
cmd: go generate ./...
test:
cmd: go test -tags=testing -race ./...
cover:
cmd: go test -tags=testing -race -coverprofile=coverage.out -covermode=atomic ./...
cover-html:
cmds:
- task cover
- go tool cover -html=coverage.out -o coverage.html
docker:
cmd: docker build -t docker.pkg.github.com/mach-composer/mach-composer-cli/mach:latest . --progress=plain