Skip to content

Instantly share code, notes, and snippets.

@sagikazarmark
Last active November 10, 2022 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagikazarmark/afa10b5be97316a73912bad6b33b0db8 to your computer and use it in GitHub Desktop.
Save sagikazarmark/afa10b5be97316a73912bad6b33b0db8 to your computer and use it in GitHub Desktop.
Go CI config
# 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