Skip to content

Commit

Permalink
Merge pull request #209 from austinvazquez/update-go-matrix-in-ci
Browse files Browse the repository at this point in the history
Update GitHub Actions CI Go matrix for Go v1.22
  • Loading branch information
rhatdan authored Feb 12, 2024
2 parents 1b71cb4 + 8d30f36 commit 76d8f98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
cache: false # golangci-lint-action does its own caching
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: v1.56

codespell:
runs-on: ubuntu-22.04
Expand All @@ -62,19 +62,19 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x
cache: false # golangci-lint-action does its own caching
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: v1.56
- name: test-stubs
run: make test

test:
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x]
go-version: [1.21.x, 1.22.x]
race: ["-race", ""]
runs-on: ubuntu-20.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion pkg/pwalk/pwalk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestWalkDirManyErrors(t *testing.T) {
max := uint32(total / 2)
e42 := errors.New("42")
err := Walk(dir,
func(p string, i os.FileInfo, _ error) error {
func(_ string, _ os.FileInfo, _ error) error {
if atomic.AddUint32(&count, 1) > max {
return e42
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/pwalkdir/pwalkdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestWalkDirManyErrors(t *testing.T) {
max := uint32(total / 2)
e42 := errors.New("42")
err := Walk(dir,
func(p string, e fs.DirEntry, _ error) error {
func(_ string, _ fs.DirEntry, _ error) error {
if atomic.AddUint32(&count, 1) > max {
return e42
}
Expand Down

0 comments on commit 76d8f98

Please sign in to comment.