feat: add drone pipeline
All checks were successful
concourse-ci/lint/golangci-lint Lint Go files
continuous-integration/drone/push Build is passing
concourse-ci/test/gotestsum Run unit tests
continuous-integration/drone Build is passing

This commit is contained in:
Peter 2023-02-17 19:47:08 +01:00
parent e643e7424b
commit e9e41fb245
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 21 additions and 1 deletions

View file

@ -5,7 +5,7 @@ image_resource:
type: registry-image
source:
repository: docker.io/golang
tag: 1.19-buster
tag: 1.20-buster
inputs:
- name: repo

20
.drone.yml Normal file
View file

@ -0,0 +1,20 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: Lint
image: docker.io/golangci/golangci-lint:latest
environment:
GO111MODULE: "on"
CGO_ENABLED: "0"
GOMEMLIMIT: "1150MiB"
commands:
- golangci-lint run -v
- name: Test
image: docker.io/golang:1.20-buster
commands:
- go mod download
- go run gotest.tools/gotestsum@latest -f pkgname-and-test-fails -- -race -shuffle=on ./...