Skip to content

chore: run go tests on github actions #1

chore: run go tests on github actions

chore: run go tests on github actions #1

Workflow file for this run

name: Go
on: [push, pull_request]
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Install dependencies
working-directory: ./go
run: go get .
- name: Generate
working-directory: ./go
run: go generate -v ./tests/...
- name: Build
working-directory: ./go
run: go test -v ./...