2021-11-12 13:49:38 +01:00
|
|
|
---
|
2021-03-18 15:40:15 +01:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-08-29 20:51:43 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-18 15:40:15 +01:00
|
|
|
|
|
|
|
- name: Set up Go
|
2022-08-29 20:51:43 +02:00
|
|
|
uses: actions/setup-go@v3
|
2021-03-18 15:40:15 +01:00
|
|
|
with:
|
2022-01-14 15:41:33 +01:00
|
|
|
go-version: 1.17
|
2021-03-18 15:40:15 +01:00
|
|
|
|
2022-08-29 20:51:43 +02:00
|
|
|
- name: install stringer
|
|
|
|
run: go install golang.org/x/tools/cmd/stringer@latest
|
|
|
|
|
2022-08-29 20:43:40 +02:00
|
|
|
- name: Generate
|
|
|
|
run: go generate ./...
|
|
|
|
|
2021-03-18 15:40:15 +01:00
|
|
|
- name: Build
|
|
|
|
run: go build -v ./...
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: go test -v ./...
|