Skip to content

Commit 0a1e962

Browse files
committed
chore: update CI
1 parent 3ce9a65 commit 0a1e962

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/go-cross.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
go-version: [ 1.16, 1.x ]
14+
go-version: [ 1.17, 1.x ]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
steps:

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
name: Main Process
1515
runs-on: ubuntu-latest
1616
env:
17-
GO_VERSION: 1.16
18-
GOLANGCI_LINT_VERSION: v1.40.1
17+
GO_VERSION: 1.17
18+
GOLANGCI_LINT_VERSION: v1.45.2
1919
CGO_ENABLED: 0
2020

2121
steps:

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ linters:
7272
- wrapcheck
7373
- exhaustive
7474
- exhaustivestruct
75+
- varnamelen
7576

7677
issues:
7778
exclude-use-default: false

module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"encoding/json"
66
"errors"
77
"fmt"
8-
"io/ioutil"
8+
"os"
99
"os/exec"
1010

1111
"golang.org/x/mod/modfile"
@@ -39,7 +39,7 @@ func GetModuleFile() (*modfile.File, error) {
3939
return nil, errors.New("working directory is not part of a module")
4040
}
4141

42-
raw, err = ioutil.ReadFile(v.GoMod)
42+
raw, err = os.ReadFile(v.GoMod)
4343
if err != nil {
4444
return nil, fmt.Errorf("reading go.mod file: %w", err)
4545
}

0 commit comments

Comments
 (0)