-
Notifications
You must be signed in to change notification settings - Fork 411
38 lines (37 loc) · 998 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
# runs tests in a plain environment, many times
on:
push:
branches:
- main
pull_request:
name: Test
jobs:
test-nocache:
continue-on-error: true
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest]
repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false
- run: go test ./...
test-cache:
continue-on-error: true
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest]
repeat: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...