ci: add go workflow

Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
Brian McGee 2024-05-09 11:51:45 +01:00
parent 4ffe2ca16c
commit 978eb486f4
No known key found for this signature in database
GPG Key ID: D49016E76AD1E8C0

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

@ -0,0 +1,24 @@
name: Go
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
go: ["1.22"]
runs-on: ${{ matrix.os }}
name: Build (Go ${{ matrix.go }}, OS ${{ matrix.os }})
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: go test -race -bench='.+' -v ./...
run: go test -race -bench='.+' -v ./...