From 8869dc8b757a6d996ad5a4a7c2d2c0943f503e04 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Wed, 29 Jun 2022 00:13:57 +0500 Subject: [PATCH] Add Drone CI configuration. Expect pipeline to fail. --- .drone.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a5566ca --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +type: docker +name: lint and test + +steps: + - name: lint + image: code.pztrn.name/containers/mirror/golangci/golangci-lint:v1.46.2 + pull: if-not-exists + environment: + CGO_ENABLED: 0 + commands: + - golangci-lint run + + - name: test + image: code.pztrn.name/containers/mirror/golang:1.18.3-alpine + pull: if-not-exists + environment: + CGO_ENABLED: 0 + commands: + - go test ./...