From b1c765ed4c9e2c3722b25d07bbb7b88d24a216a2 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Wed, 29 Jun 2022 00:18:25 +0500 Subject: [PATCH] Add Drone CI configuration. --- .drone.yml | 21 +++++++++++++++++++++ .gitignore | 1 + 2 files changed, 22 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2a86008 --- /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 ./... diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16c1a1f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*DS_Store*