This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
core-old/.drone.yml
Dawid Wysokiński 4b6ef872f3
All checks were successful
continuous-integration/drone/push Build is passing
chore: remove generated code from repo (#22)
Reviewed-on: twhelp/core#22
2022-08-05 05:08:04 +00:00

66 lines
950 B
YAML

---
kind: pipeline
type: docker
name: test
steps:
- name: test
image: golang:1.19
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- make generate
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
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:
- make generate
- go mod tidy
- git diff --exit-code go.mod
trigger:
event:
- push
- pull_request
branch:
- master
---
kind: pipeline
type: docker
name: golangci-lint
steps:
- name: run golangci-lint
image: golangci/golangci-lint:v1.48
commands:
- make generate
- golangci-lint run
trigger:
event:
- push
- pull_request
branch:
- master