backive/.github/workflows/go-release.yml

32 lines
711 B
YAML
Raw Normal View History

2022-01-07 11:28:40 +01:00
name: Go
2022-08-14 21:45:19 +02:00
on:
2022-01-07 11:33:42 +01:00
release
2022-01-07 11:28:40 +01:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
2022-08-14 21:45:19 +02:00
go-version: 1.19
2022-01-07 11:28:40 +01:00
- 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
2022-01-07 11:33:42 +01:00
run: goreleaser
2022-01-07 11:28:40 +01:00
- name: Test
run: go test -v ./...