Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Downgrade Node 20, unpin Node 22
  • Loading branch information
mark-wiemer committed Jul 28, 2025
commit cc85e0cd3386ef2a1a644a391ab973fd5935ea50
8 changes: 3 additions & 5 deletions .github/workflows/mocha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
smoke:
uses: ./.github/workflows/npm-script.yml
with:
# The 22.11.0 is instead of 22 per https://github.com/mochajs/mocha/issues/5278
node-versions: '18,20,22.11.0,24'
node-versions: '18,20,22,24'
npm-script: test-smoke

test-node-lts:
Expand Down Expand Up @@ -67,10 +66,9 @@ jobs:
with:
os: 'ubuntu-latest,windows-latest'
# We pin exact versions here per https://github.com/mochajs/mocha/issues/5052
# The 22.11.0 is instead of 22 per https://github.com/mochajs/mocha/issues/5278
# LTS is tested in a previous step
# Use 20.18.3 per https://github.com/mochajs/mocha/issues/5278
# Ref https://nodejs.org/en/about/previous-releases
node-versions: '18.20.8,20.19.4,22.11.0,24.4.1'
node-versions: '18.20.8,20.18.3,22.17.1,24.4.1'
npm-script: test-node:${{ matrix.test-part }}
coverage: ${{ matrix.coverage }}

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/npm-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
strategy:
fail-fast: false
matrix:
# The 22.11.0 is instead of "lts/*" per https://github.com/mochajs/mocha/issues/5278
node_version: ${{ fromJson(needs.resolve-inputs.outputs.nodeVersions || '["22.11.0"]') }}
node_version: ${{ fromJson(needs.resolve-inputs.outputs.nodeVersions || '["22"]') }}
os: ${{ fromJson(needs.resolve-inputs.outputs.os || '["ubuntu-latest"]') }}
browser: ${{ fromJson(needs.resolve-inputs.outputs.browsers || '[""]') }}
steps:
Expand Down
Loading