-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTaskfile.yml
57 lines (46 loc) · 1.31 KB
/
Taskfile.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Ironically the task runner is itself a dev dependency of the project.
# To install it run the following command:
#
# go install github.com/go-task/task/v3/cmd/task@latest
version: '3'
tasks:
fmt:
cmds:
- goimports -local github.com/yokecd/yoke -w .
- goimports -local k8s.io -w .
- goimports -local github.com/davidmdm -w .
- gofumpt -w .
test:
cmds:
- go test -timeout 10m -p 1 -count 1 -v ./...
update-tools:
cmds:
- go install sigs.k8s.io/kind@latest
update-deps:
cmds:
- go get -u ./...
- go get github.com/tetratelabs/[email protected]
- go mod tidy
update-yokecd-argo:
cmds:
- go install ./cmd/helm2go
- rm -rf ./cmd/yokecd-installer/argocd
- helm2go -repo https://argoproj.github.io/argo-helm/argo-cd -outdir ./cmd/yokecd-installer/argocd -schema
- task fmt
wasm:
cmds:
- task: kube
- task: pg
- task: redis
yokecd-installer:
cmds:
- GOOS=wasip1 GOARCH=wasm go build -o yokecd-installer.wasm ./cmd/yokecd-installer
kube:
cmds:
- GOOS=wasip1 GOARCH=wasm go build -o basic.wasm ./examples/basic
pg:
cmds:
- GOOS=wasip1 GOARCH=wasm go build -o pg.wasm ./examples/embeddedfs
redis:
cmds:
- GOOS=wasip1 GOARCH=wasm go build -o redis.wasm ./examples/redis