-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathTaskfile.yml
More file actions
61 lines (49 loc) · 1.38 KB
/
Taskfile.yml
File metadata and controls
61 lines (49 loc) · 1.38 KB
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
58
59
60
61
# 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 30m -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/wazero@v1.6.0
- 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
- 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
build-cli: # Handy for contributers
cmds:
- go build ./cmd/yoke