Create go-release.yml

This commit is contained in:
Marcel M. Otte 2022-01-07 11:28:40 +01:00 committed by GitHub
parent e6133848d5
commit 164db58156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
.github/workflows/go-release.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Go
on:
tag
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
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
uses: Jerome1337/golint-action@v1.0.2
#with:
# Path used by golint command
# golint-path: # optional, default is ./...
- name: Build
run: goreleaser build --snapshot --rm-dist
- name: Test
run: go test -v ./...