Skip to content

Commit 10ab64a

Browse files
authored
Merge pull request #229 from mattfarina/bump-actions-go
Updating the GitHub Actions and versions of Go used
2 parents 98fc853 + ad79e44 commit 10ab64a

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

.github/workflows/codeql.yaml

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

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Initialize CodeQL
2323
uses: github/codeql-action/init@v2

.github/workflows/fuzz.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Install Go
14-
uses: actions/setup-go@v3
14+
uses: actions/setup-go@v5
1515
with:
16-
go-version: "1.20"
16+
go-version: "1.22"
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Fuzz
2020
run: make fuzz

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Setup Go
16-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v5
1717
with:
18-
go-version: "1.20"
18+
go-version: "1.22"
1919
- name: golangci-lint
20-
uses: golangci/golangci-lint-action@v3.2.0
20+
uses: golangci/golangci-lint-action@v4
2121
with:
22-
version: v1.52
22+
version: v1.56

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.18.x, 1.19.x, 1.20.x]
7+
go-version: [1.20.x, 1.21.x, 1.22.x]
88
platform: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.platform }}
1010
steps:
1111
- name: Install Go
12-
uses: actions/setup-go@v3
12+
uses: actions/setup-go@v5
1313
with:
1414
go-version: ${{ matrix.go-version }}
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
- name: Test
1818
env:
1919
GO111MODULE: on

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ $(GOLANGCI_LINT):
2727
# Install golangci-lint. The configuration for it is in the .golangci.yml
2828
# file in the root of the repository
2929
echo ${GOPATH}
30-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1
30+
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.56.2

constraints_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ func FuzzNewConstraint(f *testing.F) {
805805
f.Add(tc)
806806
}
807807

808-
f.Fuzz(func(t *testing.T, a string) {
808+
f.Fuzz(func(_ *testing.T, a string) {
809809
_, _ = NewConstraint(a)
810810
})
811811
}

version_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ func FuzzNewVersion(f *testing.F) {
689689
f.Add(tc)
690690
}
691691

692-
f.Fuzz(func(t *testing.T, a string) {
692+
f.Fuzz(func(_ *testing.T, a string) {
693693
_, _ = NewVersion(a)
694694
})
695695
}
@@ -701,7 +701,7 @@ func FuzzStrictNewVersion(f *testing.F) {
701701
f.Add(tc)
702702
}
703703

704-
f.Fuzz(func(t *testing.T, a string) {
704+
f.Fuzz(func(_ *testing.T, a string) {
705705
_, _ = StrictNewVersion(a)
706706
})
707707
}

0 commit comments

Comments
 (0)