|
1 | 1 | name: test
|
2 | 2 |
|
3 |
| -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
4 | 8 |
|
5 | 9 | jobs:
|
6 | 10 | test-matrix:
|
7 | 11 |
|
8 | 12 | strategy:
|
9 | 13 | matrix:
|
10 |
| - operating-system: [ubuntu-18.04, windows-2019] |
| 14 | + operating-system: [ubuntu-18.04, windows-2019, macOS-10.14] |
11 | 15 |
|
12 | 16 | runs-on: ${{ matrix.operating-system }}
|
13 | 17 |
|
|
36 | 40 | run: task check
|
37 | 41 |
|
38 | 42 | - name: Install protoc compiler
|
39 |
| - uses: Arduino/actions/setup-protoc@master |
| 43 | + |
| 44 | + with: |
| 45 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
40 | 46 |
|
41 | 47 | - name: Check protocol buffers compile correctly
|
42 | 48 | run: task protoc
|
|
48 | 54 | run: task test-unit
|
49 | 55 |
|
50 | 56 | - 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' |
52 | 59 | run: task test-legacy
|
53 | 60 |
|
54 | 61 | - name: Install Python
|
|
68 | 75 | # Codecov whitelists GitHub, lifting the need
|
69 | 76 | # for a token.
|
70 | 77 | if: >
|
71 |
| - matrix.operating-system != 'windows-2019' && |
| 78 | + matrix.operating-system == 'ubuntu-18.04' && |
72 | 79 | github.event_name == 'push'
|
73 | 80 |
|
74 | 81 | with:
|
|
82 | 89 | # Codecov whitelists GitHub, lifting the need
|
83 | 90 | # for a token.
|
84 | 91 | if: >
|
85 |
| - matrix.operating-system != 'windows-2019' && |
| 92 | + matrix.operating-system == 'ubuntu-18.04' && |
86 | 93 | github.event_name == 'push'
|
87 | 94 |
|
88 | 95 | with:
|
|
96 | 103 | # Codecov whitelists GitHub, lifting the need
|
97 | 104 | # for a token.
|
98 | 105 | if: >
|
99 |
| - matrix.operating-system != 'windows-2019' && |
| 106 | + matrix.operating-system == 'ubuntu-18.04' && |
100 | 107 | github.event_name == 'push'
|
101 | 108 |
|
102 | 109 | with:
|
|
0 commit comments