2024-08-20 20:21:17 +02:00
|
|
|
steps:
|
2024-12-06 23:56:18 +01:00
|
|
|
- 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
|
2024-08-20 20:21:17 +02:00
|
|
|
- name: golangci-linter
|
2024-11-25 16:04:34 +01:00
|
|
|
image: golangci/golangci-lint:v1.62.2
|
2024-08-20 20:21:17 +02:00
|
|
|
commands:
|
|
|
|
- golangci-lint run ./...
|
|
|
|
when:
|
|
|
|
- event: push
|