From b3facadbecda065b68254d20c9d26611f9930658 Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Mon, 1 Nov 2021 21:19:21 +0100 Subject: [PATCH] Use goreleaser also for build because full config applies then. --- .github/workflows/go.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2e0d17a..28089a3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -17,7 +17,10 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.17 - + - name: Install GoReleaser + uses: goreleaser/goreleaser-action@v2.7.0 + with: + install-only: true - name: Go-linter # You may pin to the exact commit or the version. # uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589 @@ -26,7 +29,7 @@ jobs: # Path used by golint command # golint-path: # optional, default is ./... - name: Build - run: go build -v ./... + run: goreleaser build --snapshot --rm-dist - name: Test run: go test -v ./... - name: GoReleaser Action