Fix config.

This commit is contained in:
Stanislav Nikitin 2025-04-26 14:20:44 +05:00
parent ed7aa4622b
commit b57b85c3fe
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
5 changed files with 13 additions and 15 deletions

View File

@ -1,12 +1,14 @@
- id: go-test-mod-cover
name: 'go-test-mod-cover'
entry: 'go-test-mod-cover.sh'
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
files: "*.go"
- id: golangci-lint-mod
name: 'golangci-lint-mod'
entry: 'golangci-lint-mod.sh'
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"

3
go-test-cover.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
$(which go) test -cover

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
export GO111MODULE=on
$(which go) test -cover ./...

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
export GO111MODULE=on
$(which golangci-lint) run ./...

3
golangci-lint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
$(which golangci-lint) run