File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
workflow-templates/assets Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 77 DEFAULT_GO_PACKAGES :
88 sh : |
99 echo $(cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} && go list ./... | tr '\n' ' ' || echo '"ERROR: Unable to discover Go packages"')
10+ # `-ldflags` flag to use for `go build` command
11+ # TODO: define flag if required by the project, or leave empty if not needed.
1012 LDFLAGS :
1113
1214tasks :
Original file line number Diff line number Diff line change 11# See: https://taskfile.dev/#/usage
22version : " 3"
33
4+ vars :
5+ # `-ldflags` flag to use for `go test` command
6+ # TODO: define flag if required by the project, or leave empty if not needed.
7+ TEST_LDFLAGS :
8+
49tasks :
510 # Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
611 go:test :
1419 -run '{{default ".*" .GO_TEST_REGEX}}' \
1520 {{default "-timeout 10m -coverpkg=./... -covermode=atomic" .GO_TEST_FLAGS}} \
1621 -coverprofile=coverage_unit.txt \
22+ {{.TEST_LDFLAGS}} \
1723 {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
You can’t perform that action at this time.
0 commit comments