Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Apr 25, 2022
1 parent 3ce9a65 commit 0a1e962
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
go-version: [ 1.16, 1.x ]
go-version: [ 1.17, 1.x ]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Main Process
runs-on: ubuntu-latest
env:
GO_VERSION: 1.16
GOLANGCI_LINT_VERSION: v1.40.1
GO_VERSION: 1.17
GOLANGCI_LINT_VERSION: v1.45.2
CGO_ENABLED: 0

steps:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ linters:
- wrapcheck
- exhaustive
- exhaustivestruct
- varnamelen

issues:
exclude-use-default: false
Expand Down
4 changes: 2 additions & 2 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"os/exec"

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

raw, err = ioutil.ReadFile(v.GoMod)
raw, err = os.ReadFile(v.GoMod)
if err != nil {
return nil, fmt.Errorf("reading go.mod file: %w", err)
}
Expand Down

0 comments on commit 0a1e962

Please sign in to comment.