on:
  push:
    branches: [main]
  pull_request:

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
        go: ["1.25.x"]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 1
      - uses: actions/setup-go@v6
        with:
          go-version: ${{ matrix.go }}
      - run: "go test -race ./..."
      - uses: dominikh/staticcheck-action@v1.4.0
        with:
          version: "2026.1"
          install-go: false
          cache-key: ${{ matrix.go }}
