20 lines
304 B
YAML
20 lines
304 B
YAML
|
kind: pipeline
|
||
|
name: build
|
||
|
|
||
|
steps:
|
||
|
- name: gofmt
|
||
|
image: golang:1.21.5
|
||
|
commands:
|
||
|
- gofmt -l -s .
|
||
|
when:
|
||
|
event:
|
||
|
- push
|
||
|
- name: vuln-check
|
||
|
image: golang:1.21.5
|
||
|
commands:
|
||
|
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||
|
- govulncheck ./...
|
||
|
when:
|
||
|
event:
|
||
|
- push
|