aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
blob: cb9f3cc3d313963dc460e77f6693043e10f601cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Test

on:
  push:
    branches:
      - master

  pull_request:
    branches:
      - master

jobs:
  test:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
        go: ['1.15', '1.14']

    name: Test ${{ matrix.os }}-go${{ matrix.go }}

    steps:
      - uses: actions/checkout@v2
      - name: Setup Go
        uses: actions/setup-go@v1
        with:
          go-version: ${{ matrix.go }}

      - run: go test -v ./...