Rewrite pipeline
continuous-integration/woodpecker the build was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
jolheiser 2021-10-08 15:37:58 -05:00
parent b87219f5ea
commit e844e7b895
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 6 additions and 32 deletions

View File

@ -1,17 +1,8 @@
---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
pipeline:
compliance:
when:
event: pull_request
image: golang:1.17
commands:
- make test
- name: check
pull: always
image: golang:1.17
commands:
- make vet
- go test -race ./...
- go vet ./...

View File

@ -1,17 +0,0 @@
GO ?= go
.PHONY: vet
vet:
$(GO) vet ./...
.PHONY: fmt
fmt:
$(GO) fmt ./...
.PHONY: test
test:
$(GO) test -race ./...
.PHONY: bench
bench:
$(GO) test -benchmem -bench=.