aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/go.yml
blob: b415085ab42adda438e9ee6bf9afd3306f5b9148 (plain) (blame)
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
name: Go

on:
  push:
    paths:
      - '**.go'
      - '**go.mod'
  pull_request:
    paths:
      - '**.go'
      - '**go.mod'

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Go
        uses: actions/setup-go@v2
        with:
          go-version: 'stable'
      - name: Build
        run: go build -v .
      - name: Test
        run: go test -v .