-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathTaskfile.yml
More file actions
48 lines (39 loc) · 1.18 KB
/
Taskfile.yml
File metadata and controls
48 lines (39 loc) · 1.18 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
# https://taskfile.dev
version: '3'
tasks:
aws-regions:
desc: Generate AWS regions file
cmds:
- aws ec2 describe-regions --region us-east-1 --all-regions --query "Regions[].RegionName" --output text > cmd/aws-regions.txt
license:
desc: Apply license headers
cmds:
- copywrite headers
opensource:
desc: Check open source licenses
cmds:
- ~/go/bin/go-licenses report github.com/karl-cardenas-coding/go-lambda-cleanup/v2 --template=documentation/open-source.tpl > documentation/open-source.md
lint:
desc: Run Go linter
cmds:
- golangci-lint run ./...
build:
desc: Build the binary
cmds:
- go build -ldflags="-X 'github.com/karl-cardenas-coding/go-lambda-cleanup/v2/cmd.VersionString=1.0.0'" -o=glc -v
tests:
desc: Run tests
cmds:
- go test -shuffle on -race ./...
tests-coverage:
desc: Run tests with code coverage
cmds:
- go test -race -shuffle on -cover -coverprofile=coverage.out -covermode=atomic ./...
view-coverage:
desc: View code coverage report
cmds:
- go tool cover -html=coverage.out
nil:
desc: Check for nil errors
cmds:
- ~/go/bin/nilaway ./...