From 2332b5ce8a8441db7ebb82f4a57d8c496aec4a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Fri, 16 Sep 2022 16:13:09 +0200 Subject: [PATCH 1/2] add .drone.yml --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ go.mod | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5557d16 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,37 @@ +--- +kind: pipeline +type: docker +name: test + +steps: + - name: test + image: golang:1.19 + commands: + - make generate + - go test -race -coverprofile=coverage.txt -covermode=atomic ./... + +trigger: + event: + - push + - pull_request + branch: + - master + +--- +kind: pipeline +type: docker +name: check-go-mod + +steps: + - name: check go.mod + image: golang:1.19 + commands: + - go mod tidy + - git diff --exit-code go.mod + +trigger: + event: + - push + - pull_request + branch: + - master diff --git a/go.mod b/go.mod index a38ec1e..e0e2664 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gitea.dwysokinski.me/Kichiyaki/chizap -go 1.17 +go 1.18 require ( github.com/go-chi/chi/v5 v5.0.7 -- 2.45.1 From ceda59dbf00cea84ec287a0c27df32bdb36f19dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Fri, 16 Sep 2022 16:13:48 +0200 Subject: [PATCH 2/2] add .drone.yml --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5557d16..522b6f4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,6 @@ steps: - name: test image: golang:1.19 commands: - - make generate - go test -race -coverprofile=coverage.txt -covermode=atomic ./... trigger: -- 2.45.1