Skip to content

Go

Go #5

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
test:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ '1.19', '1.20' ]
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: go test -race -count 2 ./...
- run: go test -bench . -count 2 ./... -v -race
- run: go test ./...
asan:
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ '1.19', '1.20' ]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- run: ASAN_OPTIONS=detect_leaks=1 go test -tags lsan ./...