-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 856 Bytes
/
Copy pathtest.yml
File metadata and controls
34 lines (28 loc) · 856 Bytes
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
33
34
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Go 1.24+ generates the Mach-O LC_UUID load command by default, which
# macOS 15+ dyld requires (golang/go#68678). Older versions abort with
# "missing LC_UUID load command" on the macos-latest runner.
go-version: ['1.24', '1.25']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Verify dependencies
run: go mod tidy && git diff --exit-code go.mod go.sum
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -count=1 -v ./...