aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/go.yml
blob: 43adef1158e18fb31c1e94e579f2c7cec955bb75 (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
29
30
31
32
name: Go

on:
  push:
    paths:
      - "**.go"
      - "**go.mod"
      - ".github/workflows/go.yml"
  pull_request:
    paths:
      - "**.go"
      - "**go.mod"
      - ".github/workflows/go.yml"

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