summaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yaml
blob: b3ba67574ab2fb9339a6d7aba9324ea2ea4daade (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
name: Build

on:
  pull_request:
    branches: ['main']

jobs:

  build:
    name: Build
    runs-on: ubuntu-latest

    strategy:
      matrix:
        go-version: [1.19, '1.20']

    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v3
        with:
          go-version: ${{ matrix.go-version }}
          check-latest: true

      - run: |
          go build ./...
          go test -run=^$ ./...