Skip to content

Run tests on OSX #451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: test

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
test-matrix:

strategy:
matrix:
operating-system: [ubuntu-18.04, windows-2019]
operating-system: [ubuntu-18.04, windows-2019, macOS-10.14]

runs-on: ${{ matrix.operating-system }}

Expand Down Expand Up @@ -36,7 +40,9 @@ jobs:
run: task check

- name: Install protoc compiler
uses: Arduino/actions/setup-protoc@master
uses: arduino/setup-protoc@v1.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check protocol buffers compile correctly
run: task protoc
Expand All @@ -48,7 +54,8 @@ jobs:
run: task test-unit

- name: Run unit tests on the legacy package
if: matrix.operating-system != 'windows-2019'
# Run legacy tests on one platform only
if: matrix.operating-system == 'ubuntu-18.04'
run: task test-legacy

- name: Install Python
Expand All @@ -68,7 +75,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need
# for a token.
if: >
matrix.operating-system != 'windows-2019' &&
matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2
with:
Expand All @@ -82,7 +89,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need
# for a token.
if: >
matrix.operating-system != 'windows-2019' &&
matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2
with:
Expand All @@ -96,7 +103,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need
# for a token.
if: >
matrix.operating-system != 'windows-2019' &&
matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2
with:
Expand Down