diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3a31b2..fa5b67e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,15 @@ jobs: steps: - name: Check out code into the Go module directory uses: actions/checkout@v2 + - name: Set up latest Go 1.x version + uses: actions/setup-go@v2 + with: + go-version: '1.17' + - name: Get dependencies + run: | + go mod tidy - name: Lint code with golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: v1.36 only-new-issues: true diff --git a/.golangci.yml b/.golangci.yml index 8c4db19..03671d9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -174,6 +174,7 @@ issues: - gocognit - gocyclo - godot + - unused exclude-use-default: true exclude-case-sensitive: false max-issues-per-linter: 0