20 lines
396 B
YAML
20 lines
396 B
YAML
steps:
|
|
- name: gofmt
|
|
image: golang:1.22.5
|
|
commands:
|
|
- gofmt -l -s .
|
|
when:
|
|
- event: push
|
|
- name: vuln-check
|
|
image: golang:1.22.5
|
|
commands:
|
|
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
- govulncheck ./...
|
|
when:
|
|
- event: push
|
|
- name: golangci-linter
|
|
image: golangci/golangci-lint:v1.62.2
|
|
commands:
|
|
- golangci-lint run ./...
|
|
when:
|
|
- event: push
|