| 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 |
preset: 'iojs' |
| 16 |
|
| 17 |
latest: |
| 18 |
needs: [matrix] |
| 19 |
name: 'latest minors' |
| 20 |
runs-on: ubuntu-latest |
| 21 |
|
| 22 |
strategy: |
| 23 |
fail-fast: false |
| 24 |
matrix: ${{ fromJson(needs.matrix.outputs.latest) }} |
| 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 |
skip-ls-check: true |
| 33 |
- run: npm run tests-only |
| 34 |
- uses: codecov/codecov-action@v1 |
| 35 |
|
| 36 |
minors: |
| 37 |
needs: [matrix, latest] |
| 38 |
name: 'non-latest minors' |
| 39 |
continue-on-error: true |
| 40 |
if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} |
| 41 |
runs-on: ubuntu-latest |
| 42 |
|
| 43 |
strategy: |
| 44 |
fail-fast: false |
| 45 |
matrix: ${{ fromJson(needs.matrix.outputs.minors) }} |
| 46 |
|
| 47 |
steps: |
| 48 |
- uses: actions/checkout@v2 |
| 49 |
- uses: ljharb/actions/node/install@main |
| 50 |
name: 'nvm install ${{ matrix.node-version }} && npm install' |
| 51 |
with: |
| 52 |
node-version: ${{ matrix.node-version }} |
| 53 |
skip-ls-check: true |
| 54 |
- run: npm run tests-only |
| 55 |
- uses: codecov/codecov-action@v1 |
| 56 |
|
| 57 |
node: |
| 58 |
name: 'io.js' |
| 59 |
needs: [latest, minors] |
| 60 |
runs-on: ubuntu-latest |
| 61 |
steps: |
| 62 |
- run: 'echo tests completed' |