Use goreleaser also for build

because full config applies then.
This commit is contained in:
Marcel M. Otte 2021-11-01 21:19:21 +01:00 committed by GitHub
parent 622983f52d
commit b3facadbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -17,7 +17,10 @@ jobs:
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.17 go-version: 1.17
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v2.7.0
with:
install-only: true
- name: Go-linter - name: Go-linter
# You may pin to the exact commit or the version. # You may pin to the exact commit or the version.
# uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589 # uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589
@ -26,7 +29,7 @@ jobs:
# Path used by golint command # Path used by golint command
# golint-path: # optional, default is ./... # golint-path: # optional, default is ./...
- name: Build - name: Build
run: go build -v ./... run: goreleaser build --snapshot --rm-dist
- name: Test - name: Test
run: go test -v ./... run: go test -v ./...
- name: GoReleaser Action - name: GoReleaser Action