Debian Codegraph @

is-regex/.github/workflows/node-harmony.yml

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