build: wire up test with CI
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2023-10-01 10:50:22 +02:00
parent f288711357
commit 69539dd9a9
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 9 additions and 3 deletions

View File

@ -11,5 +11,8 @@ steps:
image: golang:1.21
commands:
- make build
depends_on:
- make check
- name: make test
image: golang:1.21
commands:
- make test

View File

@ -1,4 +1,4 @@
.PHONY: check clean build run
.PHONY: format check clean build run loc test
DEFAULT: run
@ -20,3 +20,6 @@ run: clean build
loc:
@find . -name "*.go" | xargs wc -l
test:
@go test ./... -cover -v