16 lines
401 B
YAML
16 lines
401 B
YAML
|
steps:
|
||
|
- name: check-format
|
||
|
image: golang
|
||
|
environment:
|
||
|
- CGO_ENABLED=1
|
||
|
commands:
|
||
|
- go fmt $(go list ./... | grep -v /vendor/)
|
||
|
- go vet $(go list ./... | grep -v /vendor/)
|
||
|
- go test -race $(go list ./... | grep -v /vendor/)
|
||
|
|
||
|
- name: check-sec
|
||
|
image: golang
|
||
|
commands:
|
||
|
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||
|
- go get -v -d .
|
||
|
- gosec ./...
|