Debian Codegraph @

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

raw
1 name: 'Tests: node.js (io.js)'
2
3 on: [pull_request, push]
4
5 jobs:
6 matrix:
7 runs-on: ubuntu-latest
8 outputs:
9 latest: ${{ steps.set-matrix.outputs.requireds }}
10 minors: ${{ 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: 'iojs'
17
18 latest:
19 needs: [matrix]
20 name: 'latest minors'
21 runs-on: ubuntu-latest
22
23 strategy:
24 fail-fast: false
25 matrix:
26 node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
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 skip-ls-check: true
38 - run: npm run ${{ matrix.command }}
39 - uses: codecov/codecov-action@v1
40
41 minors:
42 needs: [matrix, latest]
43 name: 'non-latest 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 fail-fast: false
50 matrix:
51 node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
52 command:
53 - 'tests-only'
54 - 'test:corejs'
55
56 steps:
57 - uses: actions/checkout@v2
58 - uses: ljharb/actions/node/install@main
59 name: 'nvm install ${{ matrix.node-version }} && npm install'
60 with:
61 node-version: ${{ matrix.node-version }}
62 skip-ls-check: true
63 - run: npm run ${{ matrix.command }}
64 - uses: codecov/codecov-action@v1
65
66 node:
67 name: 'io.js'
68 needs: [latest, minors]
69 runs-on: ubuntu-latest
70 steps:
71 - run: 'echo tests completed'