Added CI-Pipeline

This commit is contained in:
Phil 2022-12-23 23:02:20 +01:00
parent bafe9402d0
commit 86cc58d1f3

21
.drone.yml Normal file
View file

@ -0,0 +1,21 @@
kind: pipeline
name: default
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 ./...