diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fec1fa7..4860423 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,6 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - name: Set up Go 1.17 uses: actions/setup-go@v2 with: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index aec58de..c4a9417 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -8,20 +8,21 @@ on: pull_request: permissions: contents: read - # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read + pull-requests: read jobs: golangci: name: lint runs-on: ubuntu-latest steps: + - name: Set up Go 1.17 + uses: actions/setup-go@v2 - uses: actions/checkout@v2 - name: Install Task uses: arduino/setup-task@v1 - name: Download assets run: task download-assets - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest diff --git a/.golangci.yml b/.golangci.yml index 08a6304..4fcf4b7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -107,6 +107,8 @@ issues: linters: - gomnd - funlen + new: true + fix: true run: build-tags: