2021-11-13 21:51:30 +01:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-12 05:09:09 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-11-13 21:51:30 +01:00
|
|
|
|
|
|
|
- name: Set up Go
|
2023-03-20 13:32:24 +01:00
|
|
|
uses: actions/setup-go@v4
|
2021-11-13 21:51:30 +01:00
|
|
|
with:
|
2023-05-25 05:28:41 +02:00
|
|
|
go-version-file: 'go.mod'
|
2021-11-13 21:51:30 +01:00
|
|
|
|
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-12-19 02:32:08 +01:00
|
|
|
uses: goreleaser/goreleaser-action@v4
|
2021-11-13 22:22:07 +01:00
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: build --snapshot --rm-dist
|