clipper/.drone.yml

36 lines
777 B
YAML
Raw Normal View History

2021-12-12 12:09:21 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2022-01-04 07:22:41 +00:00
- name: backend-go1.17
image: golang:1.17
2021-12-12 12:09:21 +00:00
commands:
- cd backend/
2021-12-13 20:30:37 +00:00
- go install honnef.co/go/tools/cmd/staticcheck@latest
2021-12-12 12:09:21 +00:00
- go build ./...
- go vet ./...
2021-12-13 20:30:37 +00:00
- staticcheck ./...
2021-12-12 12:09:21 +00:00
- go test -bench=. -benchmem -cover ./...
2021-12-22 03:07:28 +00:00
2022-01-04 07:22:41 +00:00
# staticcheck does not yet support Go 1.18.
# https://github.com/dominikh/go-tools/issues/1145#issuecomment-995190461
- name: backend-go1.18
image: golang:1.18beta1
commands:
- cd backend/
# - go install honnef.co/go/tools/cmd/staticcheck@latest
- go build ./...
- go vet ./...
# - staticcheck ./...
- go test -bench=. -benchmem -cover ./...
2021-12-22 03:07:28 +00:00
- name: frontend
image: node:14
commands:
- cd frontend
- yarn
- yarn build
2022-01-04 07:22:41 +00:00
- yarn test