Skip to content

Commit b27f50f

Browse files
committed
Fix golangci-lint config and upgrade actions
- Use golangci-lint v1 config format (compatible with v1.64.8) - Upgrade actions/setup-go from v5 to v6 - Upgrade codecov/codecov-action from v4 to v5
1 parent 67fc621 commit b27f50f

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v6
1414

1515
- name: Set up Go
16-
uses: actions/setup-go@v5
16+
uses: actions/setup-go@v6
1717
with:
1818
go-version-file: go.mod
1919

@@ -24,7 +24,7 @@ jobs:
2424
run: go test -v -race -coverprofile=coverage.out ./...
2525

2626
- name: Upload coverage
27-
uses: codecov/codecov-action@v4
27+
uses: codecov/codecov-action@v5
2828
with:
2929
files: coverage.out
3030
continue-on-error: true
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v6
3636

3737
- name: Set up Go
38-
uses: actions/setup-go@v5
38+
uses: actions/setup-go@v6
3939
with:
4040
go-version-file: go.mod
4141

@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/checkout@v6
5555

5656
- name: Set up Go
57-
uses: actions/setup-go@v5
57+
uses: actions/setup-go@v6
5858
with:
5959
go-version-file: go.mod
6060

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Set up Go
20-
uses: actions/setup-go@v5
20+
uses: actions/setup-go@v6
2121
with:
2222
go-version-file: go.mod
2323

.golangci.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "2"
2-
31
run:
42
timeout: 5m
53

@@ -14,25 +12,22 @@ linters:
1412
- unconvert
1513
- unparam
1614
- gocritic
17-
18-
exclusions:
19-
rules:
20-
- path: _test\.go
21-
linters:
22-
- unparam
23-
# IATA codes are not misspellings
24-
- path: codes/iata\.go
25-
linters:
26-
- misspell
27-
28-
settings:
29-
gocritic:
30-
enabled-tags:
31-
- diagnostic
32-
- style
33-
- performance
34-
35-
formatters:
36-
enable:
3715
- gofmt
3816
- goimports
17+
18+
linters-settings:
19+
gocritic:
20+
enabled-tags:
21+
- diagnostic
22+
- style
23+
- performance
24+
25+
issues:
26+
exclude-rules:
27+
- path: _test\.go
28+
linters:
29+
- unparam
30+
# IATA codes are not misspellings
31+
- path: codes/iata\.go
32+
linters:
33+
- misspell

0 commit comments

Comments
 (0)