From 60d916647aed07f3e2e0a11d7c470f09a59740c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Cafferata Date: Wed, 3 Jan 2024 22:25:23 +0100 Subject: [PATCH] - Added `actions/setup-go@v4`. - Clean-up YAML. --- .github/workflows/pr_test.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index a87b5350f4..9901ef1301 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -10,26 +10,16 @@ env: jobs: build: runs-on: ubuntu-latest - container: - image: golang:1.21 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: restore_cache - uses: actions/cache@v3.3.2 - with: - key: linux-go-${{ hashFiles('go.sum') }}-${{ env.cache-key }} - restore-keys: linux-go-${{ hashFiles('go.sum') }}-${{ env.cache-key }} - path: ${{ env.go-mod-path }} -# Stringer is needed because .goreleaser includes "go generate ./..." + - name: Set up Go + uses: actions/setup-go@v4 - name: Install stringer run: | go install golang.org/x/tools/cmd/stringer@latest - - - id: build_binaries_not_tagged - name: Build binaries (not tagged) - if: github.ref_type != 'tag' + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: args: build --snapshot