Skip to content

Commit 76d8f98

Browse files
authored
Merge pull request #209 from austinvazquez/update-go-matrix-in-ci
Update GitHub Actions CI Go matrix for Go v1.22
2 parents 1b71cb4 + 8d30f36 commit 76d8f98

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/validate.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- uses: actions/checkout@v3
3434
- uses: actions/setup-go@v4
3535
with:
36-
go-version: 1.21.x
36+
go-version: 1.22.x
3737
cache: false # golangci-lint-action does its own caching
3838
- uses: golangci/golangci-lint-action@v3
3939
with:
40-
version: v1.54
40+
version: v1.56
4141

4242
codespell:
4343
runs-on: ubuntu-22.04
@@ -62,19 +62,19 @@ jobs:
6262
- uses: actions/checkout@v3
6363
- uses: actions/setup-go@v4
6464
with:
65-
go-version: 1.21.x
65+
go-version: 1.22.x
6666
cache: false # golangci-lint-action does its own caching
6767
- uses: golangci/golangci-lint-action@v3
6868
with:
69-
version: v1.54
69+
version: v1.56
7070
- name: test-stubs
7171
run: make test
7272

7373
test:
7474
strategy:
7575
fail-fast: false
7676
matrix:
77-
go-version: [1.19.x, 1.20.x, 1.21.x]
77+
go-version: [1.21.x, 1.22.x]
7878
race: ["-race", ""]
7979
runs-on: ubuntu-20.04
8080
steps:

pkg/pwalk/pwalk_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestWalkDirManyErrors(t *testing.T) {
7373
max := uint32(total / 2)
7474
e42 := errors.New("42")
7575
err := Walk(dir,
76-
func(p string, i os.FileInfo, _ error) error {
76+
func(_ string, _ os.FileInfo, _ error) error {
7777
if atomic.AddUint32(&count, 1) > max {
7878
return e42
7979
}

pkg/pwalkdir/pwalkdir_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func TestWalkDirManyErrors(t *testing.T) {
7676
max := uint32(total / 2)
7777
e42 := errors.New("42")
7878
err := Walk(dir,
79-
func(p string, e fs.DirEntry, _ error) error {
79+
func(_ string, _ fs.DirEntry, _ error) error {
8080
if atomic.AddUint32(&count, 1) > max {
8181
return e42
8282
}

0 commit comments

Comments
 (0)