From 2d2c19c143e916a5fab0ea743fce7fca01a02cbe Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Wed, 17 Mar 2021 21:43:35 +0300 Subject: [PATCH] Switch from deprecated gometalinter to golangci/golangci-lint-action --- .github/workflows/ci.yml | 10 +++++----- .gometalinter.json | 17 ----------------- 2 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 .gometalinter.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76b7028488..4618b2e818 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,11 @@ jobs: with: go-version: '^1.15.0' - - run: Invoke-WebRequest "https://github.com/alecthomas/gometalinter/releases/download/v2.0.12/gometalinter-2.0.12-windows-amd64.zip" -OutFile "gometalinter.zip" - - run: 7z x gometalinter.zip -y -oC:\ - - run: gometalinter.exe --config .gometalinter.json ./... - env: - PATH: C:\gometalinter-2.0.12-windows-amd64;{{ env.PATH }} + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.38.0 + args: --timeout=5m test: runs-on: 'windows-2019' diff --git a/.gometalinter.json b/.gometalinter.json deleted file mode 100644 index 00e9a6e2ec..0000000000 --- a/.gometalinter.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "Vendor": true, - "Deadline": "2m", - "Sort": [ - "linter", - "severity", - "path", - "line" - ], - "Skip": [ - "internal\\schema2" - ], - "EnableGC": true, - "Enable": [ - "gofmt" - ] -} \ No newline at end of file