Debian Codegraph @

available-typed-arrays/.github/workflows/node-zero.yml

raw
1 name: 'Tests: node.js (0.x)'
2
3 on: [pull_request, push]
4
5 jobs:
6 matrix:
7 runs-on: ubuntu-latest
8 outputs:
9 stable: ${{ steps.set-matrix.outputs.requireds }}
10 unstable: ${{ steps.set-matrix.outputs.optionals }}
11 steps:
12 - uses: ljharb/actions/node/matrix@main
13 id: set-matrix
14 with:
15 preset: '0.x'
16
17 stable:
18 needs: [matrix]
19 name: 'stable minors'
20 runs-on: ubuntu-latest
21
22 strategy:
23 fail-fast: false
24 matrix: ${{ fromJson(needs.matrix.outputs.stable) }}
25
26 steps:
27 - uses: actions/checkout@v2
28 - uses: ljharb/actions/node/install@main
29 name: 'nvm install ${{ matrix.node-version }} && npm install'
30 with:
31 node-version: ${{ matrix.node-version }}
32 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
33 skip-ls-check: true
34 - run: npm run tests-only
35 - uses: codecov/codecov-action@v1
36
37 unstable:
38 needs: [matrix, stable]
39 name: 'unstable minors'
40 continue-on-error: true
41 if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
42 runs-on: ubuntu-latest
43
44 strategy:
45 fail-fast: false
46 matrix: ${{ fromJson(needs.matrix.outputs.unstable) }}
47
48 steps:
49 - uses: actions/checkout@v2
50 - uses: ljharb/actions/node/install@main
51 name: 'nvm install ${{ matrix.node-version }} && npm install'
52 with:
53 node-version: ${{ matrix.node-version }}
54 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
55 skip-ls-check: true
56 - run: npm run tests-only
57 - uses: codecov/codecov-action@v1
58
59 node:
60 name: 'node 0.x'
61 needs: [stable, unstable]
62 runs-on: ubuntu-latest
63 steps:
64 - run: 'echo tests completed'