name: test

on: [push, pull_request]

jobs:
  test:
    runs-on: 'ubuntu-latest'
    steps:
    - uses: actions/checkout@master
    - uses: actions/setup-go@v2
      with:
        go-version: 1.14
    - name: run go tests
      run: |
        go test -v ./...
        go test -v -race ./...
