From bfd6611278bbba6ed184b1c38a785d624b97921b Mon Sep 17 00:00:00 2001 From: Kyle Purdon Date: Wed, 31 Jul 2024 11:01:32 -0600 Subject: [PATCH] Upgrade all github actions (#57) * Upgrade all github actions * Fix new golangci-lint issues --- .github/workflows/lint.yml | 10 +++++----- .github/workflows/release.yml | 8 ++++---- .github/workflows/test.yml | 6 +++--- .github/workflows/woke.yml | 2 +- marshal_test.go | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 177260d..7af3355 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,13 +14,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.19', '1.20'] + go: ['1.21', '1.22'] steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: - version: v1.52 + version: v1.59 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25aece4..8a754fa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,18 +12,18 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - run: git fetch --force --tags - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: go-version: '1.20' - - uses: goreleaser/goreleaser-action@v2 + - uses: goreleaser/goreleaser-action@v6 with: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af35589..93a0bc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.19', '1.20'] + go: ['1.21', '1.22'] steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: test run: go test -v ./... - name: test-race diff --git a/.github/workflows/woke.yml b/.github/workflows/woke.yml index 973e351..ab7485a 100644 --- a/.github/workflows/woke.yml +++ b/.github/workflows/woke.yml @@ -11,7 +11,7 @@ jobs: name: woke runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: woke uses: get-woke/woke-action@v0 with: diff --git a/marshal_test.go b/marshal_test.go index 1e41c80..2a2a86b 100644 --- a/marshal_test.go +++ b/marshal_test.go @@ -489,7 +489,7 @@ func TestMarshalFields(t *testing.T) { }{ { description: "no fields filter", - setQuery: func(q url.Values) {}, + setQuery: func(_ url.Values) {}, expect: articleCompleteBody, }, { description: "single fields filter (invalid field)",