chore: add lint check

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2019-03-04 16:10:45 +08:00
parent 3342cdf59a
commit a92fa054fe
2 changed files with 28 additions and 17 deletions

View File

@ -18,6 +18,17 @@ steps:
- name: gopath
path: /go
- name: lint
pull: always
image: golang:1.12
commands:
- make lint
environment:
GO111MODULE: on
volumes:
- name: gopath
path: /go
- name: misspell
pull: always
image: golang:1.12

View File

@ -24,23 +24,23 @@
},
],
},
// {
// name: 'lint',
// image: 'golang:1.12',
// pull: 'always',
// environment: {
// GO111MODULE: 'on',
// },
// commands: [
// 'make lint',
// ],
// volumes: [
// {
// name: 'gopath',
// path: '/go',
// },
// ],
// },
{
name: 'lint',
image: 'golang:1.12',
pull: 'always',
environment: {
GO111MODULE: 'on',
},
commands: [
'make lint',
],
volumes: [
{
name: 'gopath',
path: '/go',
},
],
},
{
name: 'misspell',
image: 'golang:1.12',