[actions] update workflows #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Tests: node.js (io.js)' | |
on: [pull_request, push] | |
permissions: | |
contents: read | |
jobs: | |
matrix: | |
runs-on: ubuntu-latest | |
outputs: | |
latest: ${{ steps.set-matrix.outputs.requireds }} | |
minors: ${{ steps.set-matrix.outputs.optionals }} | |
steps: | |
- uses: ljharb/actions/node/matrix@main | |
id: set-matrix | |
with: | |
versionsAsRoot: true | |
preset: 'iojs' | |
latest: | |
needs: [matrix] | |
name: 'latest minors' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ${{ fromJson(needs.matrix.outputs.latest) }} | |
command: | |
- test:stock | |
- test:staging | |
- test:shams:corejs | |
- test:shams:getownpropertysymbols | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ljharb/actions/node/install@main | |
name: 'nvm install ${{ matrix.node-version }} && npm install' | |
with: | |
node-version: ${{ matrix.node-version }} | |
skip-ls-check: true | |
- run: npm run ${{ matrix.command }} | |
- uses: codecov/[email protected] | |
minors: | |
needs: [matrix, latest] | |
name: 'non-latest minors' | |
continue-on-error: true | |
if: ${{ !github.head_ref || !startsWith(github.head_ref, 'renovate') }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ${{ fromJson(needs.matrix.outputs.minors) }} | |
command: | |
- test:stock | |
- test:staging | |
- test:shams:corejs | |
- test:shams:getownpropertysymbols | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ljharb/actions/node/install@main | |
name: 'nvm install ${{ matrix.node-version }} && npm install' | |
with: | |
node-version: ${{ matrix.node-version }} | |
skip-ls-check: true | |
- run: npm run ${{ matrix.command }} | |
- uses: codecov/[email protected] | |
node: | |
name: 'io.js' | |
needs: [latest, minors] | |
runs-on: ubuntu-latest | |
steps: | |
- run: true |