version: '3' tasks: build: desc: Build the agent binary cmds: [go build -o bin/__PROJECT_NAME__ ./cmd/__PROJECT_NAME__] run: desc: Run the agent (requires .env) deps: [build] cmds: [./bin/__PROJECT_NAME__] test: desc: Run all tests cmds: [go test ./... -race] lint: cmds: [golangci-lint run ./...] check: desc: Lint, vet, and test (used by CI) cmds: - golangci-lint run ./... - go vet ./... - go test ./... -race -count=1 # The three commands above cannot see cmd/__PROJECT_NAME__ -- Go's ./... # expansion skips directories whose names start with an underscore, which # is why #1 and #2 shipped green here and red in every generated repo. # This gates the substituted result instead. - bash scripts/tests/generated-child_test.sh