Skip to content

Commit

Permalink
PR: Bump golangci linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzadlone committed Jun 27, 2024
1 parent 738c5aa commit ad40cac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-then-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
cache: false

- name: Run the golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6

with:
# Required: the version of golangci-lint is required.
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ on:
push:

permissions:
# Allow read access to pull request (Required for the `only-new-issues` option.)
# Required for the `only-new-issues` option.
pull-requests: read
# Required for analysis.
contents: read
# Required to annotate code in the PR.
checks: write

jobs:
lint-go:
Expand All @@ -33,6 +36,7 @@ jobs:
- name: Checkout code into the directory
uses: actions/checkout@v4

# Setting up Go explicitly is required for v3.0.0+ of golangci/golangci-lint-action.
- name: Setup Go environment explicitly
uses: actions/setup-go@v5
with:
Expand All @@ -41,7 +45,7 @@ jobs:
cache: false

- name: Run golangci-lint linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required.
# Note: The version should not pick the patch version as the latest patch
Expand Down

0 comments on commit ad40cac

Please sign in to comment.