-
-
Notifications
You must be signed in to change notification settings - Fork 119
35 lines (33 loc) · 845 Bytes
/
go.yml
File metadata and controls
35 lines (33 loc) · 845 Bytes
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
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.22', '1.23' ]
arch: [ 'amd64', '386' ]
name: Go ${{ matrix.go }} GOARCH=${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Set GOARCH
run: |
echo "GOARCH=${{ matrix.arch }}" >> $GITHUB_ENV
- name: Run tests with race detector
if: env.GOARCH != '386'
run: go test -v -race -short ./...
- name: Run all tests
run: go test -v ./...
- name: Run RPC tests repeatedly
run: |
cd rpc
go test -c
for i in `seq 50`; do ./rpc.test; done