| 12345678910111213141516171819202122232425262728293031323334353637 |
- name: Test
- on:
- push:
- branches:
- - "*"
- pull_request:
- branches:
- - "*"
- jobs:
- test:
- strategy:
- matrix:
- platform: [ ubuntu-latest, windows-latest ]
- runs-on: ${{ matrix.platform }}
- steps:
- - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- - name: Set up Go
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
- with:
- go-version: 1.25
- - name: Build
- run: go build ./...
- - name: Set up gotestsum
- run: |
- go install gotest.tools/gotestsum@latest
- - name: Test
- run: |
- gotestsum --raw-command -- go test -json ./... --race
- - name: Validate Config
- run: go generate ./... && git diff --exit-code
|