Enable github actions

This commit is contained in:
George Fleury
2023-08-30 10:09:28 +02:00
parent 9bc1711434
commit 12fd8cfe8b
5 changed files with 27 additions and 102 deletions

27
.github/workflows/pr.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21.x', 'stable' ]
steps:
- uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...