goshorly/.drone.yml

41 lines
769 B
YAML
Raw Normal View History

2022-12-23 22:20:22 +00:00
---
2022-12-23 22:02:20 +00:00
kind: pipeline
2022-12-23 22:20:22 +00:00
name: check
2022-12-23 22:02:20 +00:00
2022-12-23 22:18:11 +00:00
workspace:
base: /go
path: src/gitea.hackmi.ch/Phil/goshorly
steps:
- name: check-format
image: golang
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 ./...
2022-12-23 22:20:22 +00:00
---
2022-12-23 22:18:11 +00:00
kind: pipeline
2022-12-23 22:20:22 +00:00
name: build
2022-12-23 22:18:11 +00:00
2022-12-23 22:02:20 +00:00
workspace:
base: /go
path: src/gitea.hackmi.ch/Phil/goshorly
steps:
- name: check-format
image: golang
commands:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
2022-12-23 22:20:22 +00:00
depends_on:
- check