Skip to content

feat: add basic github test workflow #1

feat: add basic github test workflow

feat: add basic github test workflow #1

Workflow file for this run

name: Test
on: push
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
go: ["1.21", "1.20", "1.19"] # update tidy version below if you change this
os: [ubuntu, macos]
fail-fast: false
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 15
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v3
- name: check go mod tidy
run: |
go mod tidy
git diff --exit-code
- name: test
run: go test -race=1 -v ./...