Skip to content

Commit

Permalink
Merge pull request #229 from mattfarina/bump-actions-go
Browse files Browse the repository at this point in the history
Updating the GitHub Actions and versions of Go used
  • Loading branch information
mattfarina committed Feb 19, 2024
2 parents 98fc853 + ad79e44 commit 10ab64a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fuzz.yaml
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Fuzz
run: make fuzz
10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yml
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.52
version: v1.56
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Expand Up @@ -4,16 +4,16 @@ jobs:
test:
strategy:
matrix:
go-version: [1.18.x, 1.19.x, 1.20.x]
go-version: [1.20.x, 1.21.x, 1.22.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Test
env:
GO111MODULE: on
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -27,4 +27,4 @@ $(GOLANGCI_LINT):
# Install golangci-lint. The configuration for it is in the .golangci.yml
# file in the root of the repository
echo ${GOPATH}
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.17.1
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.56.2
2 changes: 1 addition & 1 deletion constraints_test.go
Expand Up @@ -805,7 +805,7 @@ func FuzzNewConstraint(f *testing.F) {
f.Add(tc)
}

f.Fuzz(func(t *testing.T, a string) {
f.Fuzz(func(_ *testing.T, a string) {
_, _ = NewConstraint(a)
})
}
4 changes: 2 additions & 2 deletions version_test.go
Expand Up @@ -689,7 +689,7 @@ func FuzzNewVersion(f *testing.F) {
f.Add(tc)
}

f.Fuzz(func(t *testing.T, a string) {
f.Fuzz(func(_ *testing.T, a string) {
_, _ = NewVersion(a)
})
}
Expand All @@ -701,7 +701,7 @@ func FuzzStrictNewVersion(f *testing.F) {
f.Add(tc)
}

f.Fuzz(func(t *testing.T, a string) {
f.Fuzz(func(_ *testing.T, a string) {
_, _ = StrictNewVersion(a)
})
}

0 comments on commit 10ab64a

Please sign in to comment.