Skip to content

Commit

Permalink
[actions] update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 2, 2024
1 parent 74f49e9 commit 548c0bf
Show file tree
Hide file tree
Showing 11 changed files with 301 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/node-10-11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
Expand All @@ -46,6 +47,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
Expand All @@ -68,4 +70,4 @@ jobs:
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
4 changes: 3 additions & 1 deletion .github/workflows/node-12-13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
Expand All @@ -46,6 +47,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
Expand All @@ -68,4 +70,4 @@ jobs:
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
4 changes: 3 additions & 1 deletion .github/workflows/node-14-15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
Expand All @@ -46,6 +47,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
Expand All @@ -68,4 +70,4 @@ jobs:
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
71 changes: 71 additions & 0 deletions .github/workflows/node-16-17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: 'Tests: node.js (v16 - 17)'

on: [pull_request, push]

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: '^16 || ^17'

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

node:
name: 'node v16 - v17'
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: true
71 changes: 71 additions & 0 deletions .github/workflows/node-18-19.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: 'Tests: node.js (v18 - 19)'

on: [pull_request, push]

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: '^18 || ^19'

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

node:
name: 'node v18 - 19'
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: true
69 changes: 69 additions & 0 deletions .github/workflows/node-20-21.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: 'Tests: node.js (v20 - 21)'

on: [pull_request, push]

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: '^20 || ^21'

latest:
needs: [matrix]
name: 'latest minors'
runs-on: ubuntu-latest

strategy:
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
- test:stock
- 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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

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:
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
- test:stock
- 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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

node:
name: 'node v20 - v21'
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: true
71 changes: 71 additions & 0 deletions .github/workflows/node-22+.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: 'Tests: node.js (v22+)'

on: [pull_request, push]

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: '>=22'

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

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: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 }}
- run: npm run ${{ matrix.command }}
- uses: codecov/codecov-action@v3.1.5

node:
name: 'node v22+'
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: true
4 changes: 3 additions & 1 deletion .github/workflows/node-4-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
Expand All @@ -46,6 +47,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
Expand All @@ -68,4 +70,4 @@ jobs:
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
4 changes: 3 additions & 1 deletion .github/workflows/node-7-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
command:
Expand All @@ -46,6 +47,7 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: ${{ fromJson(needs.matrix.outputs.minors) }}
command:
Expand All @@ -68,4 +70,4 @@ jobs:
needs: [latest, minors]
runs-on: ubuntu-latest
steps:
- run: 'echo tests completed'
- run: true
Loading

0 comments on commit 548c0bf

Please # to comment.