From 6ff56f91e9dad77f4ff6954d90d8c395123ba38e Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 30 Apr 2024 18:28:48 +0100 Subject: [PATCH] Update workflows. --- .github/workflows/golangci-lint.yml | 9 ++++++--- .golangci.yml | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 768ceb4e..d96b0881 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,18 +7,21 @@ on: permissions: contents: read + pull-requests: read jobs: golangci: name: lint runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: cache: false go-version: '1.20' - - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v5 with: - args: --timeout=60m + version: 'latest' + args: '--timeout=60m' + skip-cache: true diff --git a/.golangci.yml b/.golangci.yml index 30a8a1c8..ba07ea66 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,6 +4,16 @@ # This file is not a configuration example, # it contains the exhaustive configuration with explanations of the options. +issues: + # Which files to exclude: they will be analyzed, but issues from them won't be reported. + # There is no need to include all autogenerated files, + # we confidently recognize autogenerated files. + # If it's not, please let us know. + # "/" will be replaced by current OS file path separator to properly work on Windows. + # Default: [] + exclude-files: + - ".*_ssz\\.go$" + # Options for analysis running. run: # The default concurrency value is the number of available CPU. @@ -39,16 +49,6 @@ run: # Default: true # skip-dirs-use-default: false - # Which files to skip: they will be analyzed, but issues from them won't be reported. - # Default value is empty list, - # but there is no need to include all autogenerated files, - # we confidently recognize autogenerated files. - # If it's not please let us know. - # "/" will be replaced by current OS file path separator to properly work on Windows. - skip-files: - - ".*_ssz\\.go$" - - ".*_encoding\\.go$" - # If set we pass it to "go list -mod={option}". From "go help modules": # If invoked with -mod=readonly, the go command is disallowed from the implicit # automatic updating of go.mod described above. Instead, it fails when any changes