Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Commit c7d43b3

Browse files
authored
Split MacOS build into a different job (#324)
Split MacOS build into a different job so that we can disable UDP tests (flaky) on it.
1 parent 0b54a2c commit c7d43b3

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/go.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Go Build and Test
22
on: [push, pull_request]
33
jobs:
44

5-
build:
5+
build_ubuntu_windows:
66
name: Build and Test
77
env:
88
# UDP tests use this variable to disable IPv6.
99
TRAVIS: yes
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, windows-latest, macos-latest]
13+
os: [ubuntu-latest, windows-latest]
1414
steps:
1515

1616
- name: Set up Go 1.13
@@ -31,3 +31,30 @@ jobs:
3131

3232
- name: Test
3333
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 ./...

0 commit comments

Comments
 (0)