diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 72f27e4..f2f96ce 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,12 +14,17 @@ jobs: name: lint runs-on: ubuntu-latest steps: + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: '1.14.4' - uses: actions/checkout@v2 - name: Run golangci-lint uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.35.0 + skip-go-installation: true # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/pkg/service/init.go b/pkg/service/init.go index 77a2fb4..803d3a5 100644 --- a/pkg/service/init.go +++ b/pkg/service/init.go @@ -81,12 +81,12 @@ func (nrf *NRF) Initialize(c *cli.Context) error { return err } - nrf.setLogLevel() + nrf.SetLogLevel() return nil } -func (nrf *NRF) setLogLevel() { +func (nrf *NRF) SetLogLevel() { if factory.NrfConfig.Logger == nil { logger.InitLog.Warnln("NRF config without log level setting!!!") return