Fix config.
This commit is contained in:
parent
ed7aa4622b
commit
b57b85c3fe
@ -1,12 +1,14 @@
|
|||||||
- id: go-test-mod-cover
|
- id: go-test-mod-cover
|
||||||
name: 'go-test-mod-cover'
|
name: 'go-test-mod-cover'
|
||||||
entry: 'go-test-mod-cover.sh'
|
entry: 'go-test-cover.sh'
|
||||||
language: 'script'
|
language: 'script'
|
||||||
description: 'Run go test in module mode (GO111MODULE=on) with coverage report'
|
description: 'Run go test in module mode with coverage report.'
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
files: "*.go"
|
||||||
- id: golangci-lint-mod
|
- id: golangci-lint-mod
|
||||||
name: 'golangci-lint-mod'
|
name: 'golangci-lint-mod'
|
||||||
entry: 'golangci-lint-mod.sh'
|
entry: 'golangci-lint.sh'
|
||||||
language: 'script'
|
language: 'script'
|
||||||
description: 'Run golangci-lint in module mode (GO111MODULE=on)'
|
description: 'Run golangci-lint in module mode.'
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
files: "*.go"
|
||||||
|
3
go-test-cover.sh
Executable file
3
go-test-cover.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
$(which go) test -cover
|
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
export GO111MODULE=on
|
|
||||||
|
|
||||||
$(which go) test -cover ./...
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
export GO111MODULE=on
|
|
||||||
|
|
||||||
$(which golangci-lint) run ./...
|
|
3
golangci-lint.sh
Executable file
3
golangci-lint.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
$(which golangci-lint) run
|
Loading…
x
Reference in New Issue
Block a user