-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
819 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM cimg/go:1.18.3 | ||
FROM cimg/go:1.19.1 | ||
|
||
ENV CIRCLECI_CLI_SKIP_UPDATE_CHECK true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
version: '3' | ||
|
||
tasks: | ||
lint: | ||
desc: Lint code | ||
cmds: | ||
- golangci-lint run -c .golangci.yml | ||
summary: Lint the project with golangci-lint | ||
|
||
clean: | ||
desc: Cleans out the build, out, docs, and dist directories | ||
cmds: | ||
- GO111MODULE=off go clean -i | ||
- rm -rf build out docs dist | ||
|
||
fmt: | ||
desc: Run `go fmt` to format the code | ||
cmds: | ||
- go fmt ./... | ||
|
||
test: | ||
desc: Run the tests | ||
cmds: | ||
- TESTING=true go test -v ./... | ||
|
||
tidy: | ||
desc: Run 'go mod tidy' to clean up module files. | ||
cmds: | ||
- go mod tidy -v | ||
|
||
doc: | ||
desc: run's the godocs | ||
cmds: | ||
- godoc -http=:6060 | ||
|
||
check-go-mod: | ||
desc: Check go.mod is tidy | ||
cmds: | ||
- go mod tidy -v | ||
- git diff --exit-code -- go.mod go.sum | ||
|
||
vendor: | ||
desc: go mod vendor | ||
cmds: | ||
- go mod vendor | ||
|
||
build: | ||
desc: Build main | ||
cmds: | ||
- go build -v -o build/darwin/amd64/circleci . | ||
|
||
build-linux: | ||
desc: Build main | ||
cmds: | ||
- go build -v -o build/linux/amd64/circleci . | ||
|
||
cover: | ||
desc: tests and generates a cover profile | ||
cmds: | ||
- TESTING=true go test -race -coverprofile=coverage.txt ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.