-
Notifications
You must be signed in to change notification settings - Fork 34
88 lines (88 loc) · 2.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
on:
push:
pull_request:
types: [synchronize]
schedule:
- cron: "0 0 1,11,21 * *"
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version:
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- 1.15.x
- 1.16.x
- 1.17.x
go-flags: [""]
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- go-version: 1.13.x
os: ubuntu-latest
go-flags: "-trimpath"
- go-version: 1.13.x
os: macos-latest
go-flags: "-trimpath"
- go-version: 1.13.x
os: windows-latest
go-flags: "-trimpath"
- go-version: 1.14.x
os: ubuntu-latest
go-flags: "-trimpath"
- go-version: 1.14.x
os: macos-latest
go-flags: "-trimpath"
- go-version: 1.14.x
os: windows-latest
go-flags: "-trimpath"
- go-version: 1.15.x
os: ubuntu-latest
go-flags: "-trimpath"
- go-version: 1.15.x
os: macos-latest
go-flags: "-trimpath"
- go-version: 1.15.x
os: windows-latest
go-flags: "-trimpath"
- go-version: 1.16.x
os: ubuntu-latest
go-flags: "-trimpath"
- go-version: 1.16.x
os: macos-latest
go-flags: "-trimpath"
- go-version: 1.16.x
os: windows-latest
go-flags: "-trimpath"
- go-version: 1.17.x
os: ubuntu-latest
go-flags: "-trimpath"
- go-version: 1.17.x
os: macos-latest
go-flags: "-trimpath"
- go-version: 1.17.x
os: windows-latest
go-flags: "-trimpath"
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
with:
path: "${{github.workspace}}/src/github.com/${{github.repository}}"
- name: Test
env:
GOPATH: "${{github.workspace}}"
GOFLAGS: ${{ matrix.go-flags }}
working-directory: "${{github.workspace}}/src/github.com/${{github.repository}}"
run: go test ./...