File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Go
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+
11
+ # Unfortunately there is much duplication below. I have not found a
12
+ # way to set "runs-on" to an array, so instead I duplicated the
13
+ # whole thing three times.
14
+
15
+ linux_build_and_test :
16
+ name : Build and test (Linux)
17
+ runs-on : windows-latest
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ go : ['1.13', '1.14', '1.15', '1.16']
22
+ steps :
23
+ - id : go
24
+ name : Set up Go
25
+ uses : actions/setup-go@v1
26
+ with :
27
+ go-version : ${{ matrix.go }}
28
+ - name : Checkout
29
+ uses : actions/checkout@v2
30
+ - name : Build
31
+ run : go build -v .
32
+ - name : Test
33
+ run : go test -v .
34
+
35
+ windows_build_and_test :
36
+ name : Build and test (Windows)
37
+ runs-on : windows-latest
38
+ strategy :
39
+ fail-fast : false
40
+ matrix :
41
+ go : ['1.13', '1.14', '1.15', '1.16']
42
+ steps :
43
+ - id : go
44
+ name : Set up Go
45
+ uses : actions/setup-go@v1
46
+ with :
47
+ go-version : ${{ matrix.go }}
48
+ - name : Checkout
49
+ uses : actions/checkout@v2
50
+ - name : Build
51
+ run : go build -v .
52
+ - name : Test
53
+ run : go test -v .
54
+
55
+ macos_build_and_test :
56
+ name : Build and test (macOS)
57
+ runs-on : macos-latest
58
+ strategy :
59
+ fail-fast : false
60
+ matrix :
61
+ go : ['1.13', '1.14', '1.15', '1.16']
62
+ steps :
63
+ - id : go
64
+ name : Set up Go
65
+ uses : actions/setup-go@v1
66
+ with :
67
+ go-version : ${{ matrix.go }}
68
+ - name : Checkout
69
+ uses : actions/checkout@v2
70
+ - name : Build
71
+ run : go build -v .
72
+ - name : Test
73
+ run : go test -v .
You can’t perform that action at this time.
0 commit comments