Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: pin node-lts tests to 22.11.0 (#5279)

Josh Goldberg ✨664e1f49f7ae
diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.yml
index 04dfa5c7..6008ea9a 100644
--- a/.github/workflows/mocha.yml
+++ b/.github/workflows/mocha.yml
@@ -22,7 +22,8 @@ jobs:
smoke:
uses: ./.github/workflows/npm-script.yml
with:
- node-versions: '14,22,lts/*'
+ # The 22.11.0 is instead of lts per https://github.com/mochajs/mocha/issues/5278
+ node-versions: '18,20,22.11.0'
npm-script: test-smoke
test-node-lts:
@@ -64,7 +65,8 @@ jobs:
coverage: false
with:
os: 'ubuntu-latest,windows-latest'
- node-versions: '14,16,18,20,22'
+ # The 22.11.0 is instead of 22 per https://github.com/mochajs/mocha/issues/5278
+ node-versions: '14,16,18,20,22.11.0'
npm-script: test-node:${{ matrix.test-part }}
coverage: ${{ matrix.coverage }}
diff --git a/.github/workflows/npm-script.yml b/.github/workflows/npm-script.yml
index 2fe2bc8f..8409b870 100644
--- a/.github/workflows/npm-script.yml
+++ b/.github/workflows/npm-script.yml
@@ -54,7 +54,8 @@ jobs:
strategy:
fail-fast: false
matrix:
- node_version: ${{ fromJson(needs.resolve-inputs.outputs.nodeVersions || '["lts/*"]') }}
+ # 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"]') }}
os: ${{ fromJson(needs.resolve-inputs.outputs.os || '["ubuntu-latest"]') }}
browser: ${{ fromJson(needs.resolve-inputs.outputs.browsers || '[""]') }}
steps:
diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml
index 72abb071..82ed2f80 100644
--- a/.github/workflows/release-please.yml
+++ b/.github/workflows/release-please.yml
@@ -38,7 +38,8 @@ jobs:
show-progress: false
- uses: actions/setup-node@v4
with:
- node-version: lts/*
+ # The 22.11.0 is instead of lts per https://github.com/mochajs/mocha/issues/5278
+ node-version: '22.11.0'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies