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

Commit

Permalink
Split MacOS build into a different job (#324)
Browse files Browse the repository at this point in the history
Split MacOS build into a different job so that we can disable UDP tests (flaky) on it.
  • Loading branch information
manugarg authored Nov 21, 2019
1 parent 0b54a2c commit c7d43b3
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Go Build and Test
on: [push, pull_request]
jobs:

build:
build_ubuntu_windows:
name: Build and Test
env:
# UDP tests use this variable to disable IPv6.
TRAVIS: yes
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest]
steps:

- name: Set up Go 1.13
Expand All @@ -31,3 +31,30 @@ jobs:

- name: Test
run: go test -v -race -covermode=atomic ./...

build_macos:
name: Build and Test on MacOS
env:
# Disable UDP tests on MacOS. They are flaky.
EXTRA_TEST_FLAGS: -tags skip_udp_probe_test
runs-on: macOS-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build -v .

- name: Test
run: go test ${EXTRA_TEST_FLAGS} -v -race -covermode=atomic ./...

0 comments on commit c7d43b3

Please sign in to comment.