Skip to content

Commit f99361a

Browse files
author
Massimiliano Pippi
authored
Run tests on OSX (#451)
* run tests on osx * use latest version of the action * pass github token
1 parent 79cdab0 commit f99361a

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/test.yaml

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
test-matrix:
711

812
strategy:
913
matrix:
10-
operating-system: [ubuntu-18.04, windows-2019]
14+
operating-system: [ubuntu-18.04, windows-2019, macOS-10.14]
1115

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

@@ -36,7 +40,9 @@ jobs:
3640
run: task check
3741

3842
- name: Install protoc compiler
39-
uses: Arduino/actions/setup-protoc@master
43+
uses: arduino/[email protected]
44+
with:
45+
repo-token: ${{ secrets.GITHUB_TOKEN }}
4046

4147
- name: Check protocol buffers compile correctly
4248
run: task protoc
@@ -48,7 +54,8 @@ jobs:
4854
run: task test-unit
4955

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

5461
- name: Install Python
@@ -68,7 +75,7 @@ jobs:
6875
# Codecov whitelists GitHub, lifting the need
6976
# for a token.
7077
if: >
71-
matrix.operating-system != 'windows-2019' &&
78+
matrix.operating-system == 'ubuntu-18.04' &&
7279
github.event_name == 'push'
7380
uses: codecov/[email protected]
7481
with:
@@ -82,7 +89,7 @@ jobs:
8289
# Codecov whitelists GitHub, lifting the need
8390
# for a token.
8491
if: >
85-
matrix.operating-system != 'windows-2019' &&
92+
matrix.operating-system == 'ubuntu-18.04' &&
8693
github.event_name == 'push'
8794
uses: codecov/[email protected]
8895
with:
@@ -96,7 +103,7 @@ jobs:
96103
# Codecov whitelists GitHub, lifting the need
97104
# for a token.
98105
if: >
99-
matrix.operating-system != 'windows-2019' &&
106+
matrix.operating-system == 'ubuntu-18.04' &&
100107
github.event_name == 'push'
101108
uses: codecov/[email protected]
102109
with:

0 commit comments

Comments
 (0)