-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (32 loc) · 954 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
pull_request:
jobs:
ci:
name: CI
strategy:
matrix:
go: ['1.18', '1.19', '1.21', '1.22']
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=.