-
-
Notifications
You must be signed in to change notification settings - Fork 73
39 lines (39 loc) · 945 Bytes
/
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
on: [push, pull_request]
name: Test
jobs:
version:
name: Test
permissions:
contents: read
strategy:
matrix:
go-version: ['oldstable', 'stable']
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "${{ matrix.go-version }}"
- name: Go Test
run: go test -race ./...
module:
name: Test
permissions:
contents: read
strategy:
matrix:
go-version-file: ['go.mod']
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version-file: "${{ matrix.go-version-file }}"
- name: Go Test
run: go test -race ./...