From e9e41fb245726838e54c2db55515089812d03931 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Fri, 17 Feb 2023 19:47:08 +0100 Subject: [PATCH] feat: add drone pipeline --- .concourse/tasks/test.yml | 2 +- .drone.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.concourse/tasks/test.yml b/.concourse/tasks/test.yml index 4e07a22..7989819 100644 --- a/.concourse/tasks/test.yml +++ b/.concourse/tasks/test.yml @@ -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 diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f52c776 --- /dev/null +++ b/.drone.yml @@ -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 ./... \ No newline at end of file