Skip to content

Commit

Permalink
- Added actions/setup-go@v4.
Browse files Browse the repository at this point in the history
- Clean-up YAML.
  • Loading branch information
cafferata committed Jan 3, 2024
1 parent a8a5ff3 commit 60d9166
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit 60d9166

Please sign in to comment.