mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
chore: add lint check
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
3342cdf59a
commit
a92fa054fe
11
.drone.yml
11
.drone.yml
@ -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
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user