ci.yml
1name: Go CI
2
3on:
4 push:
5 branches: [master]
6 pull_request:
7 branches: [master]
8
9jobs:
10 build:
11 runs-on: ${{ matrix.os }}
12 strategy:
13 matrix:
14 os: [ubuntu-latest, windows-latest, macos-latest]
15 steps:
16 - uses: actions/checkout@v6
17
18 - name: Set up Go
19 uses: actions/setup-go@v6
20 with:
21 go-version: "1.26.1"
22
23 - name: Tidy modules
24 run: go mod tidy
25
26 - name: Test
27 run: go test -v ./...
28
29 - name: Build
30 run: go build -v ./...