From 43fc92a3420cdb3316d3f7fe22da90da13170c26 Mon Sep 17 00:00:00 2001 From: Pierre Carrier Date: Mon, 13 Nov 2023 18:17:39 +0100 Subject: [PATCH] update github workflows --- .github/workflows/go-presubmit.yml | 10 +++++----- .github/workflows/goreleaser.yml | 12 +++++------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/go-presubmit.yml b/.github/workflows/go-presubmit.yml index 983da59..6b734fa 100644 --- a/.github/workflows/go-presubmit.yml +++ b/.github/workflows/go-presubmit.yml @@ -13,13 +13,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.17', '1.18', '1.19'] + go-version: ['1.19', '1.20', '1.21'] steps: - name: Install Go ${{ matrix.go-version }} - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version: ${{ matrix.go-version }} - - uses: actions/checkout@v3 - - uses: creachadair/go-presubmit-action@v1 + - uses: actions/checkout@v4 + - uses: creachadair/go-presubmit-action@v2 with: - staticcheck-version: "2022.1.3" + staticcheck-version: "2023.1.6" diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 5965aa6..2c6e54d 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -17,17 +17,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: - go-version: 1.17 + go-version: 1.21.4 - name: Run GoReleaser release (SKIP publish) - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 if: startsWith(github.ref, 'refs/tags/') != true with: distribution: goreleaser @@ -37,7 +35,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser release - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v5 if: startsWith(github.ref, 'refs/tags/') with: distribution: goreleaser