From c5c6c11458d0169a5038561393eed6e397c0cbe0 Mon Sep 17 00:00:00 2001 From: Preston Locke Date: Thu, 31 Oct 2024 15:22:41 -0500 Subject: [PATCH] Various CI/linting updates --- .github/workflows/test.yml | 13 ++++++------- .golangci.yaml | 7 ++++--- go.mod | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb0ad3d..8efd5b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,15 +11,15 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: 1.18 + go-version: 1.23 - name: Build run: go build -v ./... @@ -28,7 +28,6 @@ jobs: run: go test -v ./... - name: Lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v6 with: - version: v1.45.2 - only-new-issues: true + version: v1.61 diff --git a/.golangci.yaml b/.golangci.yaml index 9bd0bda..b3184ad 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -12,12 +12,13 @@ linters: - stylecheck - gosec - dupl - - maligned - depguard - lll - prealloc - - scopelint - gocritic - gochecknoinits - gochecknoglobals - - typecheck # Go 1.13 incompatible pending new golangci-lint binary release + # These are deprecated + - execinquery + - exportloopref + - gomnd diff --git a/go.mod b/go.mod index a07123b..730606d 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/letsencrypt/gorepotemplate -go 1.18 +go 1.23