Skip to content

Commit 55f3575

Browse files
authored
Merge pull request #399 from blinklabs-io/ci/update-golangci-lint
ci: update golangci-lint
2 parents a247a4a + c34fa94 commit 55f3575

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,25 @@ on:
99
branches:
1010
- main
1111
pull_request:
12+
1213
permissions:
1314
contents: read
14-
# Optional: allow read access to pull request. Use with `only-new-issues` option.
15-
# pull-requests: read
15+
pull-requests: read
16+
1617
jobs:
1718
golangci:
1819
name: lint
1920
runs-on: ubuntu-latest
2021
steps:
21-
- uses: actions/checkout@v2
22-
- uses: actions/setup-go@v3
22+
- uses: actions/checkout@v3
23+
- uses: actions/setup-go@v4
2324
with:
2425
go-version: 1.20.x
26+
cache: false
2527
- name: golangci-lint
2628
uses: golangci/golangci-lint-action@v3
2729
with:
28-
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
29-
version: v1.53.3 # current version at time of commit
30-
args: --timeout 10m
31-
only-new-issues: true
30+
version: v1.54 # current version at time of commit
31+
args: --timeout=10m
32+
# Only show new issues in a PR but show all issues for pushes
33+
only-new-issues: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}

0 commit comments

Comments
 (0)