|
8 | 8 |
|
9 | 9 | jobs:
|
10 | 10 | build:
|
11 |
| - runs-on: ${{ matrix.os }} |
12 |
| - strategy: |
13 |
| - matrix: |
14 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
15 |
| - node: [12.x, 14.x, 15.x] |
16 |
| - fail-fast: false |
| 11 | + runs-on: ubuntu-latest |
17 | 12 |
|
18 | 13 | steps:
|
19 |
| - - name: Set git to use LF on Windows |
20 |
| - if: matrix.os == 'windows-latest' |
21 |
| - run: | |
22 |
| - git config --global core.autocrlf false |
23 |
| - git config --global core.eol lf |
24 |
| -
|
25 | 14 | - name: Checkout
|
26 | 15 | uses: actions/checkout@v2
|
27 | 16 |
|
28 |
| - - name: Set node version to ${{ matrix.node }} |
29 |
| - uses: actions/setup-node@v1 |
| 17 | + - name: Set node version to 14 |
| 18 | + uses: actions/setup-node@v2 |
30 | 19 | with:
|
31 |
| - node-version: ${{ matrix.node }} |
| 20 | + node-version: 14 |
32 | 21 |
|
33 | 22 | - name: Versions
|
34 | 23 | run: yarn versions
|
|
37 | 26 | run: yarn install --frozen-lockfile
|
38 | 27 |
|
39 | 28 | - name: Lint
|
40 |
| - if: matrix.os == 'ubuntu-latest' && matrix.node == '14.x' |
41 | 29 | run: yarn lint
|
42 | 30 |
|
43 | 31 | - name: Build
|
44 | 32 | run: yarn build
|
45 |
| - |
46 |
| - - name: Test |
47 |
| - run: yarn jest --ci --silent --reporters=default --reporters=jest-junit |
48 |
| - |
49 |
| - - name: Upload test artifact |
50 |
| - uses: actions/upload-artifact@v2 |
51 |
| - if: ${{ always() }} |
52 |
| - with: |
53 |
| - name: JUnit_${{ matrix.os }}_${{ matrix.node }}_${{ github.sha }} |
54 |
| - path: junit.xml |
55 |
| - |
56 |
| - - name: Audit dependencies |
57 |
| - run: yarn audit --groups dependencies |
58 |
| - |
59 |
| - - name: Audit peerDependencies |
60 |
| - run: yarn audit --groups peerDependencies |
61 |
| - |
62 |
| - - name: Check outdated dependencies |
63 |
| - if: github.ref == 'refs/heads/main' |
64 |
| - run: yarn outdated |
0 commit comments