From 48bfc940b5f5ab2d2dcf5cc396afa8b81cfceb1f Mon Sep 17 00:00:00 2001 From: modusensus Date: Mon, 5 Oct 2026 15:29:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20Codecov=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=20v5=20+=20retry=5Fcount=3D3=E2=80=94?= =?UTF-8?q?=E2=80=94=E5=BC=95=E5=AF=BC=E6=9C=9F=20TLS=20=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=88=A4=E6=AD=BB=E6=95=B4=E6=9D=A1=E8=85=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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+),而