From 79ec7e573a3e66e268b5e5308a1e3ac14b6d01fb Mon Sep 17 00:00:00 2001 From: Patrick Pacher Date: Tue, 19 Jan 2021 10:39:51 +0100 Subject: [PATCH] Update golangci-lint action --- .github/workflows/go.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 0d0ffc6..3b9d0d6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -18,6 +18,9 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Remove go.mod replacements + run: sed '/$replace /d' go.mod + - uses: actions/setup-go@v2 with: go-version: '^1.15' @@ -35,11 +38,12 @@ jobs: DEBIAN_FRONTEND: noninteractive - name: Run golangci-lint - uses: golangci/golangci-lint-action@v1 + uses: golangci/golangci-lint-action@v2 with: + version: v1.29 only-new-issues: true - version: v1.26 args: -c ./.golangci.yml + skip-go-installation: true - name: Get dependencies run: go mod download @@ -60,10 +64,16 @@ jobs: name: Test runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - uses: actions/setup-go@v2 with: go-version: '^1.15' + - name: Remove go.mod replacements + run: sed '/$replace /d' go.mod + # nektos/act does not have sudo install but we need it on GH actions so # try to install it. - name: Install sudo @@ -76,9 +86,6 @@ jobs: env: DEBIAN_FRONTEND: noninteractive - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Get dependencies run: go mod download