Remove GO111MODULE and update lint/test commands. #1
@ -1,12 +1,16 @@
|
||||
- id: go-test-mod-cover
|
||||
name: 'go-test-mod-cover'
|
||||
entry: 'go-test-mod-cover.sh'
|
||||
- id: go-test-cover
|
||||
name: 'go-test-cover'
|
||||
entry: 'go-test-cover.sh'
|
||||
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
|
||||
- id: golangci-lint-mod
|
||||
name: 'golangci-lint-mod'
|
||||
entry: 'golangci-lint-mod.sh'
|
||||
files: .*.go"
|
||||
always_run: true
|
||||
- id: golangci-lint
|
||||
name: 'golangci-lint'
|
||||
entry: 'golangci-lint.sh'
|
||||
language: 'script'
|
||||
description: 'Run golangci-lint in module mode (GO111MODULE=on)'
|
||||
pass_filenames: false
|
||||
description: 'Run golangci-lint in module mode.'
|
||||
pass_filenames: false
|
||||
files: .*.go"
|
||||
always_run: true
|
||||
|
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