mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-27 15:36:25 +00:00
ad0f7a5305
Upgrade to Go 1.20.5, Hydra v2 SDK, rules-go v0.44.2 (with proper resolves), protobuf v25.3 and mass upgrade of Go dependencies.
31 lines
464 B
YAML
31 lines
464 B
YAML
version: '2'
|
|
|
|
env:
|
|
GOFLAGS: -mod=vendor
|
|
|
|
tasks:
|
|
default:
|
|
deps: [test]
|
|
|
|
lint:
|
|
desc: Checks code style
|
|
cmds:
|
|
- gofmt -d -s *.go
|
|
- go vet ./...
|
|
silent: true
|
|
|
|
lint-fix:
|
|
desc: Fixes code style
|
|
cmds:
|
|
- gofmt -w -s *.go
|
|
|
|
test:
|
|
desc: Runs go tests
|
|
cmds:
|
|
- go test -race ./...
|
|
|
|
test-coverage:
|
|
desc: Runs go tests and calculates test coverage
|
|
cmds:
|
|
- go test -race -coverprofile=c.out ./...
|