Browse Source

Move to woodpecker (#6)

Reviewed-on: #6
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>
pull/7/head
jolheiser 1 week ago
parent
commit
99bf189237
  1. 17
      .drone.yml
  2. 8
      .woodpecker.yml
  3. 17
      Makefile

17
.drone.yml

@ -1,17 +0,0 @@
---
kind: pipeline
name: compliance
trigger:
event:
- pull_request
steps:
- name: build
pull: always
image: golang:1.16
commands:
- make test
- name: check
pull: always
image: golang:1.16
commands:
- make vet

8
.woodpecker.yml

@ -0,0 +1,8 @@
pipeline:
compliance:
image: golang:1.17
commands:
- go test -race ./...
- go vet ./...
when:
event: [ pull_request ]

17
Makefile

@ -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=.
Loading…
Cancel
Save