From ad79e44b5767854b219c99feca464183e1654fe4 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Mon, 19 Feb 2024 12:26:18 -0500 Subject: [PATCH] Updating the GitHub Actions and versions of Go used Signed-off-by: Matt Farina --- .github/workflows/codeql.yaml | 2 +- .github/workflows/fuzz.yaml | 6 +++--- .github/workflows/golangci-lint.yml | 10 +++++----- .github/workflows/test.yaml | 6 +++--- Makefile | 2 +- constraints_test.go | 2 +- version_test.go | 4 ++-- 7 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index e984005..5796b8d 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -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 diff --git a/.github/workflows/fuzz.yaml b/.github/workflows/fuzz.yaml index 05c2a05..04f3e36 100644 --- a/.github/workflows/fuzz.yaml +++ b/.github/workflows/fuzz.yaml @@ -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 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 3cf0b50..d848979 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b892b91..79ee28d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/Makefile b/Makefile index 0e7b5c7..1a4271b 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/constraints_test.go b/constraints_test.go index c720797..f519a48 100644 --- a/constraints_test.go +++ b/constraints_test.go @@ -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) }) } diff --git a/version_test.go b/version_test.go index 16156dd..e2df832 100644 --- a/version_test.go +++ b/version_test.go @@ -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) }) } @@ -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) }) }