Skip to content

Commit dfe48ef

Browse files
authored
Merge branch 'main' into depbump-testify
2 parents 9a9bf2c + 528ceb5 commit dfe48ef

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

.github/workflows/lint.yml

+14-10
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ on:
33
push:
44
pull_request:
55

6+
permissions:
7+
# Required: allow read access to the content for analysis.
8+
contents: read
9+
# Optional: allow read access to pull request. Use with `only-new-issues` option.
10+
pull-requests: read
11+
# Optional: allow write access to checks to allow the action to annotate code in the PR.
12+
checks: write
13+
614
jobs:
715
lint:
816
name: run golangci-golint on the project
917
runs-on: ubuntu-latest
1018
steps:
11-
- uses: actions/setup-go@v3
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-go@v5
1221
with:
13-
go-version: "^1"
14-
15-
- run: go version
16-
17-
- uses: actions/checkout@v3
18-
22+
go-version: 'stable'
1923
- name: golangci-golint
20-
run: |
21-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.63.4
22-
./bin/golangci-lint run -v ./...
24+
uses: golangci/golangci-lint-action@v6
25+
with:
26+
version: v1.64.5

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
go:
14+
- "1.24"
1415
- "1.23"
1516
- "1.22"
1617
- "1.21"

.golangci.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ linters:
1111
- unused
1212
- stylecheck
1313

14-
run:
15-
skip-files:
14+
issues:
15+
exclude-dirs:
1616
# These were code-generated, and cannot be changed without breaking RPC compatibility.
17-
- lambda/messages/*.go
17+
- lambda/messages
1818

1919
linters-settings:
20+
staticcheck:
21+
checks:
22+
- all
23+
- '-SA1029'
2024
stylecheck:
21-
go: "1.20"
2225
checks:
2326
- "all"
2427
initialisms:
@@ -43,6 +46,7 @@ linters-settings:
4346
- "IP"
4447
- "JSON"
4548
- "MQTT"
49+
- "OTF"
4650
- "QPS"
4751
- "RAM"
4852
- "RPC"

0 commit comments

Comments
 (0)