2024-11-26 13:35:54 +01:00
|
|
|
steps:
|
|
|
|
- name: gofmt
|
2024-12-04 02:03:25 +01:00
|
|
|
image: golang:1.23.4
|
2024-11-26 13:35:54 +01:00
|
|
|
commands:
|
|
|
|
- gofmt -l -s .
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
- name: vuln-check
|
2024-12-04 02:03:25 +01:00
|
|
|
image: golang:1.23.4
|
2024-11-26 13:35:54 +01:00
|
|
|
commands:
|
|
|
|
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
|
|
- govulncheck ./...
|
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
- name: golangci-linter
|
2025-01-01 23:02:24 +01:00
|
|
|
image: golangci/golangci-lint:v1.63.1
|
2024-11-26 13:35:54 +01:00
|
|
|
commands:
|
|
|
|
- golangci-lint run ./...
|
|
|
|
when:
|
|
|
|
- event: push
|