Skip to content

Commit 7b2aecc

Browse files
committed
Use go 1.20, golangci-lint 1.54.2 in Github Actions
1 parent 1b02a77 commit 7b2aecc

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go
2828
uses: actions/setup-go@v2
2929
with:
30-
go-version: 1.19
30+
go-version: '1.20.x'
3131

3232
- uses: actions/checkout@v2
3333

@@ -48,7 +48,7 @@ jobs:
4848
- name: Set up Go
4949
uses: actions/setup-go@v2
5050
with:
51-
go-version: 1.19
51+
go-version: '1.20.x'
5252

5353
- name: Build
5454
run: go build -v ./...

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/setup-go@v3
2020
with:
21-
go-version: 1.19
21+
go-version: '1.20.x'
2222
- uses: actions/checkout@v3
2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@v3
2525
with:
2626
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
27-
version: v1.50.1
27+
version: v1.54.2
2828

2929
# Optional: working directory, useful for monorepos
3030
# working-directory: somedir

.golangci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ run:
33
concurrency: 4
44

55
# timeout for analysis, e.g. 30s, 5m, default is 1m
6-
deadline: 30m
6+
timeout: 30m
77

88
# exit code when at least one issue was found, default is 1
99
issues-exit-code: 1
@@ -71,7 +71,6 @@ linters:
7171
- containedctx
7272
- contextcheck
7373
- decorder
74-
- depguard
7574
- dogsled
7675
- dupl
7776
- errname

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vmkteam/mfd-generator
22

3-
go 1.18
3+
go 1.20
44

55
require (
66
github.com/dizzyfool/genna v1.2.0

0 commit comments

Comments
 (0)