ci: added basic build and test workflow

This commit is contained in:
Felipe Martin Garcia 2022-08-07 12:22:37 +02:00
parent 79120738ea
commit d6d8c5e1d3
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 24 additions and 0 deletions

24
.github/workflows/go.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Go
on:
push:
branches: ["latest"]
pull_request:
branches: ["latest"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test and coverage
run: go test -cover -v ./...