-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (47 loc) · 1.16 KB
/
test.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
41
42
43
44
45
46
47
48
49
50
51
52
name: test
on:
push:
branches: [master]
pull_request:
jobs:
test:
strategy:
matrix:
goversion: [1.16, 1.19, 1.23]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- name: Checkout
uses: actions/checkout@v2
- name: Test
# Run benchmarks just to see that they don't crash.
run: go test -bench=. -benchtime=.1s ./...
- name: Test nounsafe
run: go test -tags nounsafe ./...
- name: Test 386
run: go test -tags nounsafe ./...
env:
GOARCH: 386
- name: Build benchmarks
run: cd benchmarks && go test -c
test-qemu:
strategy:
matrix:
arch: [arm, arm64]
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Install QEMU
uses: docker/setup-qemu-action@v1
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: go test -bench=. -benchtime=.1s ./...
env:
GOARCH: ${{ matrix.arch }}