From d6f9376aafc5777055fcb800932820d507d3ec82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Fri, 16 Sep 2022 14:14:31 +0000 Subject: [PATCH] add .drone.yml (#2) Reviewed-on: https://gitea.dwysokinski.me/Kichiyaki/chizap/pulls/2 --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ go.mod | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..522b6f4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +--- +kind: pipeline +type: docker +name: test + +steps: + - name: test + image: golang:1.19 + commands: + - 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