goveal/.github/workflows/go.yml

43 lines
786 B
YAML
Raw Normal View History

2020-12-05 11:08:10 +00:00
name: Go
2021-12-26 10:58:59 +00:00
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
2020-12-05 11:08:10 +00:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.17
2020-12-05 11:08:10 +00:00
uses: actions/setup-go@v2
with:
go-version: '^1.17'
2020-12-05 11:08:10 +00:00
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
lfs: true
- name: Install Task
2021-11-12 12:34:54 +00:00
uses: arduino/setup-task@v1
2020-12-05 11:08:10 +00:00
- name: Build & test
2021-11-12 12:34:54 +00:00
run: task download-reveal test
2020-12-05 11:08:10 +00:00
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}