-
Notifications
You must be signed in to change notification settings - Fork 285
38 lines (36 loc) · 870 Bytes
/
test.yaml
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
name: Test
on:
workflow_dispatch:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
tests-on-unix:
name: Tests on Unix
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version:
- oldstable
- stable
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run tests
run: go test -race -shuffle=on ./...
tests-on-windows:
name: Tests on Windows
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run tests
run: go test -race -shuffle=on ./...