From 978eb486f45957d26a8a5132c50c0775ad402a0d Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Thu, 9 May 2024 11:51:45 +0100 Subject: [PATCH] ci: add go workflow Signed-off-by: Brian McGee --- .github/workflows/go.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..19ad2d7 --- /dev/null +++ b/.github/workflows/go.yml @@ -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 ./...