| 1 |
name: test |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
pull_request: |
| 7 |
branches: |
| 8 |
- master |
| 9 |
jobs: |
| 10 |
test: |
| 11 |
strategy: |
| 12 |
matrix: |
| 13 |
os: [windows-latest, macos-latest, ubuntu-latest] |
| 14 |
go: |
| 15 |
- "1.26" |
| 16 |
- "1.25" |
| 17 |
- "1.24" |
| 18 |
runs-on: ${{ matrix.os }} |
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v4 |
| 21 |
- uses: actions/setup-go@v5 |
| 22 |
with: |
| 23 |
go-version: ${{ matrix.go }} |
| 24 |
|
| 25 |
- run: go generate ./... |
| 26 |
- run: git diff --cached --exit-code |
| 27 |
- run: go test ./... -v -cover -coverprofile coverage.out |
| 28 |
- run: go test -bench . -benchmem |
| 29 |
|
| 30 |
- uses: codecov/codecov-action@v5 |