-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
63 lines (51 loc) · 1.17 KB
/
Copy pathTaskfile.yml
File metadata and controls
63 lines (51 loc) · 1.17 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
62
63
version: "3"
vars:
BINARY: helm-crd-wrapper
tasks:
default:
cmds:
- task: check
build:
desc: Build the helm-crd-wrapper binary
cmds:
- go build -trimpath -o bin/{{.BINARY}} .
test:
desc: Run unit and integration tests
cmds:
- go test ./... -race -count=1
test-update-golden:
desc: Regenerate golden test fixtures
cmds:
- go test ./internal/wrapper -run TestGolden -update
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run ./...
fmt:
desc: Format Go sources
cmds:
- gofmt -s -w .
- goimports -w .
helm-lint:
desc: Render a wrapped CRD through helm template to confirm valid output
cmds:
- bash scripts/helm-lint-smoke.sh
check:
desc: Run build, test, lint, and helm-lint smoke
cmds:
- task: build
- task: test
- task: lint
- task: helm-lint
install:
desc: Install the binary to $GOBIN
cmds:
- go install .
release-snapshot:
desc: Build a local snapshot release with goreleaser
cmds:
- goreleaser release --snapshot --clean
clean:
desc: Remove build artifacts
cmds:
- rm -rf bin dist