Debian Codegraph @

is-regex/.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 versionsAsRoot: true
16 preset: '0.x'
17
18 stable:
19 needs: [matrix]
20 name: 'stable minors'
21 runs-on: ubuntu-latest
22
23 strategy:
24 fail-fast: false
25 matrix:
26 node-version: ${{ fromJson(needs.matrix.outputs.stable) }}
27 command:
28 - 'tests-only'
29 - 'test:corejs'
30
31 steps:
32 - uses: actions/checkout@v2
33 - uses: ljharb/actions/node/install@main
34 name: 'nvm install ${{ matrix.node-version }} && npm install'
35 with:
36 node-version: ${{ matrix.node-version }}
37 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
38 skip-ls-check: true
39 - run: npm run ${{ matrix.command }}
40 - uses: codecov/codecov-action@v1
41
42 unstable:
43 needs: [matrix, stable]
44 name: 'unstable minors'
45 continue-on-error: true
46 if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
47 runs-on: ubuntu-latest
48
49 strategy:
50 fail-fast: false
51 matrix:
52 node-version: ${{ fromJson(needs.matrix.outputs.unstable) }}
53 command:
54 - 'tests-only'
55 - 'test:corejs'
56
57 steps:
58 - uses: actions/checkout@v2
59 - uses: ljharb/actions/node/install@main
60 name: 'nvm install ${{ matrix.node-version }} && npm install'
61 with:
62 node-version: ${{ matrix.node-version }}
63 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
64 skip-ls-check: true
65 - run: npm run ${{ matrix.command }}
66 - uses: codecov/codecov-action@v1
67
68 node:
69 name: 'node 0.x'
70 needs: [stable, unstable]
71 runs-on: ubuntu-latest
72 steps:
73 - run: 'echo tests completed'