This repository was archived by the owner on Nov 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: Go Build and Test
2
2
on : [push, pull_request]
3
3
jobs :
4
4
5
- build :
5
+ build_ubuntu_windows :
6
6
name : Build and Test
7
7
env :
8
8
# UDP tests use this variable to disable IPv6.
9
9
TRAVIS : yes
10
10
runs-on : ${{ matrix.os }}
11
11
strategy :
12
12
matrix :
13
- os : [ubuntu-latest, windows-latest, macos-latest ]
13
+ os : [ubuntu-latest, windows-latest]
14
14
steps :
15
15
16
16
- name : Set up Go 1.13
31
31
32
32
- name : Test
33
33
run : go test -v -race -covermode=atomic ./...
34
+
35
+ build_macos :
36
+ name : Build and Test on MacOS
37
+ env :
38
+ # Disable UDP tests on MacOS. They are flaky.
39
+ EXTRA_TEST_FLAGS : -tags skip_udp_probe_test
40
+ runs-on : macOS-latest
41
+ steps :
42
+
43
+ - name : Set up Go 1.13
44
+ uses : actions/setup-go@v1
45
+ with :
46
+ go-version : 1.13
47
+ id : go
48
+
49
+ - name : Check out code into the Go module directory
50
+ uses : actions/checkout@v1
51
+
52
+ - name : Get dependencies
53
+ run : |
54
+ go get -v -t -d ./...
55
+
56
+ - name : Build
57
+ run : go build -v .
58
+
59
+ - name : Test
60
+ run : go test ${EXTRA_TEST_FLAGS} -v -race -covermode=atomic ./...
You can’t perform that action at this time.
0 commit comments