-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
42 lines (34 loc) · 1.3 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
version: '3'
tasks:
build-local:
cmds:
- go build -o terraform-provider-storyblok_{{ .VERSION }}
- mkdir -p ~/.terraform.d/plugins/registry.terraform.io/labd/storyblok/{{ .VERSION }}/{{ .PLATFORM }}/
- mv terraform-provider-storyblok_{{ .VERSION }} ~/.terraform.d/plugins/registry.terraform.io/labd/storyblok/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-storyblok_v{{ .VERSION }}
- cmd: codesign --deep --force -s - ~/.terraform.d/plugins/registry.terraform.io/labd/storyblok/{{ .VERSION }}/{{ .PLATFORM }}/terraform-provider-storyblok_v{{ .VERSION }}
platforms: [ darwin ]
vars:
VERSION: 99.0.0
PLATFORM:
sh: echo "$(go env GOOS)_$(go env GOARCH)"
format:
cmds:
- go fmt ./...
- terraform fmt -recursive -write=true ./examples/
test:
cmds:
- go test -v ./...
docs:
cmds:
- go generate ./...
coverage-html:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -html=coverage.txt
coverage:
cmds:
- go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=./... ./...
- go tool cover -func=coverage.txt
testacc:
cmds:
- TF_ACC=1 STORYBLOK_URL=https://mapi.storyblok.com STORYBLOK_TOKEN=foobar go test ./...