👷 Updated Drone CI/CD config

This commit is contained in:
Maxim Lebedev 2022-03-19 01:10:54 +05:00
parent dbe7ba3dc2
commit 0bbb29156c
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 21 additions and 3 deletions

View File

@ -19,7 +19,10 @@ test:
dep:
go mod download
gen:
go generate ./...
lint:
golangci-lint run
.PHONY: build run clean test dep lint
.PHONY: build run clean test dep gen lint

View File

@ -1,8 +1,18 @@
---
name: default
type: docker
kind: pipeline
type: docker
name: default
steps:
- name: init
image: golang
volumes:
- name: deps
path: /go
commands:
- make dep
- make gen
- name: test
image: golang
volumes:
@ -10,6 +20,9 @@ steps:
path: /go
commands:
- make test
depends_on:
- init
- name: build
image: golang
volumes:
@ -18,7 +31,9 @@ steps:
commands:
- make build
depends_on:
- init
- test
volumes:
- name: deps
temp: {}