2021-11-13 21:51:30 +01:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-07 15:19:41 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-11-13 21:51:30 +01:00
|
|
|
|
|
|
|
- name: Set up Go
|
2022-04-11 03:44:10 +02:00
|
|
|
uses: actions/setup-go@v3
|
2021-11-13 21:51:30 +01:00
|
|
|
with:
|
|
|
|
go-version: 1.17
|
|
|
|
|
2021-12-04 16:25:28 +01:00
|
|
|
- name: Test
|
|
|
|
run: go test ./...
|
|
|
|
|
2021-11-13 22:22:07 +01:00
|
|
|
- name: Run GoReleaser Snapshot
|
2022-05-23 04:52:13 +02:00
|
|
|
uses: goreleaser/goreleaser-action@v3
|
2021-11-13 22:22:07 +01:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: build --snapshot --rm-dist
|