Last active
November 10, 2022 17:34
-
-
Save sagikazarmark/afa10b5be97316a73912bad6b33b0db8 to your computer and use it in GitHub Desktop.
Go CI config
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
# Go version? | |
# Custom container image? | |
# Execute: goci build | |
# Runs: Go build | |
builds: | |
# CLI | |
- package: ./cmd/main | |
output: ./build/ # Write back to filesystem? | |
# Library | |
- package: ./... | |
# Shorthand for a single build | |
build: | |
package: ... | |
# Execute: goci test | |
# Runs: Go test (gotestsum??) | |
# Other features: coverage? | |
tests: | |
- package: ./... | |
race: true | |
# Execute: goci lint | |
# Runs: golangci-lint | |
lint: | |
config: .golangci-lint.yaml | |
# Execute: goci release | |
# Runs: goreleaser | |
release: | |
config: .goreleaser.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment