Unverified Commit f99361a9 authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

Run tests on OSX (#451)

* run tests on osx

* use latest version of the action

* pass github token
parent 79cdab0b
name: test name: test
on: [push, pull_request] on:
push:
branches:
- master
pull_request:
jobs: jobs:
test-matrix: test-matrix:
strategy: strategy:
matrix: matrix:
operating-system: [ubuntu-18.04, windows-2019] operating-system: [ubuntu-18.04, windows-2019, macOS-10.14]
runs-on: ${{ matrix.operating-system }} runs-on: ${{ matrix.operating-system }}
...@@ -36,7 +40,9 @@ jobs: ...@@ -36,7 +40,9 @@ jobs:
run: task check run: task check
- name: Install protoc compiler - 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 - name: Check protocol buffers compile correctly
run: task protoc run: task protoc
...@@ -48,7 +54,8 @@ jobs: ...@@ -48,7 +54,8 @@ jobs:
run: task test-unit run: task test-unit
- name: Run unit tests on the legacy package - 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 run: task test-legacy
- name: Install Python - name: Install Python
...@@ -68,7 +75,7 @@ jobs: ...@@ -68,7 +75,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need # Codecov whitelists GitHub, lifting the need
# for a token. # for a token.
if: > if: >
matrix.operating-system != 'windows-2019' && matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push' github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2 uses: codecov/codecov-action@v1.0.2
with: with:
...@@ -82,7 +89,7 @@ jobs: ...@@ -82,7 +89,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need # Codecov whitelists GitHub, lifting the need
# for a token. # for a token.
if: > if: >
matrix.operating-system != 'windows-2019' && matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push' github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2 uses: codecov/codecov-action@v1.0.2
with: with:
...@@ -96,7 +103,7 @@ jobs: ...@@ -96,7 +103,7 @@ jobs:
# Codecov whitelists GitHub, lifting the need # Codecov whitelists GitHub, lifting the need
# for a token. # for a token.
if: > if: >
matrix.operating-system != 'windows-2019' && matrix.operating-system == 'ubuntu-18.04' &&
github.event_name == 'push' github.event_name == 'push'
uses: codecov/codecov-action@v1.0.2 uses: codecov/codecov-action@v1.0.2
with: with:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment