diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bae7bc4..8a2ef8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,13 +57,18 @@ jobs: if: matrix.os == 'ubuntu-latest' && matrix.node-version == 24 run: npm run test:coverage + # v5:codecov-action v4 的引导期(下载/连接 codecov.io)TLS 失败不受 + # fail_ci_if_error 约束,会把整条腿判死(2026-10-05 ubuntu+node24 连挂三次, + # 测试与覆盖率本身 fail 0)。v5 走新 CLI 且带 retry_count,引导/上传的 + # 网络抖动可在步内消化——上报失败仍不应挡 merge。 - name: Upload coverage to Codecov if: matrix.os == 'ubuntu-latest' && matrix.node-version == 24 - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }} files: dsh-mneme/coverage/lcov.info fail_ci_if_error: false + retry_count: 3 # ── 宿主版本兼容腿:0.1.x 老内核 ─────────────────────────────────────────── # peerDependencies 声明覆盖三段(0.1.0-rc.6+ / 0.1.5-rc.0+ / 0.2.0-rc.0+),而