Debian Codegraph @

available-typed-arrays/.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 include:
27 - node-version: '0.10'
28 - node-version: '0.8'
29
30 steps:
31 - uses: actions/checkout@v2
32 - uses: ljharb/actions/node/install@main
33 name: 'nvm install ${{ matrix.node-version }} && npm install'
34 with:
35 node-version: ${{ matrix.node-version }}
36 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
37 skip-ls-check: true
38 - run: npm run test:harmony
39 - uses: codecov/codecov-action@v1
40
41 unstable:
42 needs: [matrix, stable]
43 name: 'unstable minors'
44 continue-on-error: true
45 if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }}
46 runs-on: ubuntu-latest
47
48 strategy:
49 matrix:
50 node-version: ${{ fromJson(needs.matrix.outputs.unstable) }}
51 exclude:
52 - node-version: '0.10'
53 - node-version: '0.8'
54 - node-version: '0.7'
55 - node-version: '0.6'
56 - node-version: '0.5'
57 - node-version: '0.4'
58
59 steps:
60 - uses: actions/checkout@v2
61 - uses: ljharb/actions/node/install@main
62 name: 'nvm install ${{ matrix.node-version }} && npm install'
63 with:
64 node-version: ${{ matrix.node-version }}
65 cache-node-modules-key: node_modules-${{ github.workflow }}-${{ github.action }}-${{ github.run_id }}
66 skip-ls-check: true
67 - run: npm run test:harmony
68 - uses: codecov/codecov-action@v1
69
70 node:
71 name: 'node: harmony'
72 needs: [stable, unstable]
73 runs-on: ubuntu-latest
74 steps:
75 - run: 'echo tests completed'