name: test

on: [push, pull_request]

jobs:
  test:
    runs-on: "ubuntu-latest"
    steps:
      - uses: actions/checkout@master
      - uses: actions/setup-go@v4
        with:
          go-version-file: "go.mod"
          cache: true
      - name: run go tests
        run: |
          go test -v ./...
          go test -v -race ./...
