Skip to content

CI: test on Go 1.23 #1643

CI: test on Go 1.23

CI: test on Go 1.23 #1643

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
ci:
name: CI
strategy:
matrix:
go: ['1.18', '1.19', '1.22', '1.23']
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Run gofmt
run: test -z "$(go fmt ./...)"
shell: bash
- name: Test pgregory.net/rand
run: go test
- name: Test practrand utility
run: go test ./misc/practrand
- name: Bench pgregory.net/rand
run: go test -run=Benchmark -bench=.
- name: Bench math/rand
run: go test -tags=benchstd -run=Benchmark -bench=.
- name: Bench math/rand/v2
run: go test -tags=benchstdpcg -run=Benchmark -bench=.
- name: Bench golang.org/x/exp/rand
run: go test -tags=benchx -run=Benchmark -bench=.