Skip to content

armgit / mocha

Public Imported from GitHub
0

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

chore: replace find-conflicts with improved smoke versions (#6344)

Copilot2668e712ee73
diff --git a/.github/workflows/mocha.yml b/.github/workflows/mocha.yml
index 19410945..1a214367 100644
--- a/.github/workflows/mocha.yml
+++ b/.github/workflows/mocha.yml
@@ -28,7 +28,7 @@ jobs:
smoke:
uses: ./.github/workflows/npm-script.yml
with:
- node-versions: "20,22,24,26"
+ node-versions: "20.19.0,20,22.12.0,22,24,26"
npm-script: test-smoke
test-node-lts:
diff --git a/.github/workflows/npm-script.yml b/.github/workflows/npm-script.yml
index 32e3fb92..ed7ebcfc 100644
--- a/.github/workflows/npm-script.yml
+++ b/.github/workflows/npm-script.yml
@@ -47,26 +47,6 @@ jobs:
if: inputs.os
run: echo "splitted=$(echo '${{ inputs.os }}' | jq -R -c 'split(",")')" >> $GITHUB_OUTPUT
- find-conflicts:
- permissions:
- id-token: none
- runs-on: ${{ matrix.os }}
- needs:
- - resolve-inputs
- strategy:
- fail-fast: false
- matrix:
- node_version: ${{ fromJson(needs.resolve-inputs.outputs.nodeVersions || '["22"]') }}
- os: ${{ fromJson(needs.resolve-inputs.outputs.os || '["ubuntu-latest"]') }}
- steps:
- - uses: actions/checkout@v7
- - name: Use Node.js ${{ matrix.node_version }}
- uses: actions/setup-node@v7
- with:
- node-version: ${{ matrix.node_version }}
- - name: Check dependency tree
- run: npm i --no-fund --package-lock-only --dry-run
-
script:
name: ${{ inputs.npm-script }}${{ needs.resolve-inputs.outputs.browsers && format('[{0}]', matrix.browser) }}${{ needs.resolve-inputs.outputs.nodeVersions && format(' with node.js {0}', matrix.node_version) }}${{ needs.resolve-inputs.outputs.os && format(' on {0}', matrix.os) }}
runs-on: ${{ matrix.os }}