diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f96c76a659..10cd7efbab 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,9 +23,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - + uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.18.x - name: Lint uses: golangci/golangci-lint-action@v2 with: - version: v1.42.0 + version: v1.45.2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6c643f41a..c7764d1b4d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,8 +19,8 @@ jobs: - name: Upgrade golang run: | cd /tmp - wget https://dl.google.com/go/go1.16.8.linux-amd64.tar.gz - tar -zxvf go1.16.8.linux-amd64.tar.gz + wget https://dl.google.com/go/go1.17.7.linux-amd64.tar.gz + tar -zxvf go1.17.7.linux-amd64.tar.gz sudo rm -fr /usr/local/go sudo mv /tmp/go /usr/local/go cd - diff --git a/discovery/xds/kuma_test.go b/discovery/xds/kuma_test.go index b62e9a0ef9..008d63a371 100644 --- a/discovery/xds/kuma_test.go +++ b/discovery/xds/kuma_test.go @@ -31,7 +31,7 @@ import ( ) var ( - kumaConf KumaSDConfig = sdConf + kumaConf = sdConf testKumaMadsV1Resources = []*MonitoringAssignment{ { diff --git a/template/template.go b/template/template.go index fa20c0a470..8b55531d80 100644 --- a/template/template.go +++ b/template/template.go @@ -175,7 +175,7 @@ func NewTemplateExpander( return html_template.HTML(text) }, "match": regexp.MatchString, - "title": strings.Title, + "title": strings.Title, //nolint:staticcheck "toUpper": strings.ToUpper, "toLower": strings.ToLower, "graphLink": strutil.GraphLinkForExpression,