use mod=vendor on tests & vet

pull/3/head
Matti R 5 years ago
parent bad71040c6
commit e3cd58ea2c
No known key found for this signature in database
GPG Key ID: 9D8A57ADAA232E95
  1. 4
      .drone.yml

@ -11,7 +11,7 @@ steps:
pull: always pull: always
image: golang:1.13 image: golang:1.13
commands: commands:
- go vet ./... - go vet -mod=vendor ./...
environment: environment:
GO111MODULE: on GO111MODULE: on
@ -19,7 +19,7 @@ steps:
pull: always pull: always
image: golang:1.13 image: golang:1.13
commands: commands:
- go test -cover $(go list ./... | grep -v /vendor/) - go test -mod=vendor -cover $(go list -mod=vendor ./... | grep -v /vendor/)
environment: environment:
GO111MODULE: on GO111MODULE: on

Loading…
Cancel
Save