Skip to content

Fix/synctest compatibility #20

Fix/synctest compatibility

Fix/synctest compatibility #20

Workflow file for this run

name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- "1.17"
- "1.20"
- "1.22"
- "1.23"
- "1.25"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -bench=. -coverprofile=coverage.txt ./...
env:
GODEBUG: asynctimerchan=0
- name: Test with deadlock_disable tag
run: go test -v -tags=deadlock_disable ./...
- name: Test with synctest tag (Go 1.25+)
if: matrix.go == '1.25'
run: go test -v -tags=goexperiment.synctest ./...
env:
GODEBUG: asynctimerchan=0
- name: Test all build tag combinations
run: ./scripts/test-buildtags.sh