|
1 |
| -name: test |
2 |
| - |
| 1 | +name: CI |
3 | 2 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - master |
7 |
| - pull_request: |
8 |
| - branches: |
9 |
| - - master |
10 |
| - |
| 3 | + - push |
| 4 | + - pull_request |
11 | 5 | jobs:
|
12 |
| - linux: |
13 |
| - runs-on: ubuntu-latest |
14 |
| - |
| 6 | + test: |
| 7 | + name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }} |
| 8 | + runs-on: ${{ matrix.os }} |
15 | 9 | strategy:
|
16 | 10 | matrix:
|
17 |
| - node-version: [10.x, 12.x, 14.x] |
18 |
| - |
| 11 | + node-version: |
| 12 | + - 14 |
| 13 | + - 12 |
| 14 | + - 10 |
| 15 | + os: |
| 16 | + - ubuntu-latest |
| 17 | + - macos-latest |
| 18 | + - windows-latest |
19 | 19 | steps:
|
20 |
| - - uses: actions/checkout@v2 |
21 |
| - - name: Use Node.js ${{ matrix.node-version }} |
22 |
| - uses: actions/setup-node@v1 |
23 |
| - with: |
24 |
| - node-version: ${{ matrix.node-version }} |
25 |
| - - run: npm install |
26 |
| - - run: npm test |
27 |
| - env: |
28 |
| - CI: true |
29 |
| - |
30 |
| - macos: |
31 |
| - runs-on: macos-latest |
32 |
| - |
33 |
| - strategy: |
34 |
| - matrix: |
35 |
| - node-version: [10.x, 12.x, 14.x] |
36 |
| - |
37 |
| - steps: |
38 |
| - - uses: actions/checkout@v2 |
39 |
| - - name: Install dependencies |
40 |
| - run: brew install automake |
41 |
| - - name: Use Node.js ${{ matrix.node-version }} |
42 |
| - uses: actions/setup-node@v1 |
43 |
| - with: |
44 |
| - node-version: ${{ matrix.node-version }} |
45 |
| - - run: npm install |
46 |
| - - run: npm test |
47 |
| - env: |
48 |
| - CI: true |
49 |
| - |
50 |
| - windows: |
51 |
| - runs-on: windows-latest |
52 |
| - |
53 |
| - strategy: |
54 |
| - matrix: |
55 |
| - node-version: [10.x, 12.x, 14.x] |
56 |
| - |
57 |
| - steps: |
58 |
| - - uses: actions/checkout@v2 |
59 |
| - - name: Use Node.js ${{ matrix.node-version }} |
60 |
| - uses: actions/setup-node@v1 |
61 |
| - with: |
62 |
| - node-version: ${{ matrix.node-version }} |
63 |
| - - run: npm install |
64 |
| - - run: npm test |
65 |
| - env: |
66 |
| - CI: true |
| 20 | + - uses: actions/checkout@v2 |
| 21 | + - if: contains(matrix.os, 'macos') |
| 22 | + run: brew install automake |
| 23 | + - uses: actions/setup-node@v2 |
| 24 | + with: |
| 25 | + node-version: ${{ matrix.node-version }} |
| 26 | + - run: npm install |
| 27 | + - run: npm test |
0 commit comments