add .drone.yml
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Dawid Wysokiński 2022-09-16 16:13:09 +02:00
parent 34988ffb4b
commit 2332b5ce8a
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 38 additions and 1 deletions

37
.drone.yml Normal file
View File

@ -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

2
go.mod
View File

@ -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