From c9e5129ec80bead1b448f4ae9165dcf9773047e2 Mon Sep 17 00:00:00 2001 From: CI Bot Date: Tue, 28 Jul 2026 17:30:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20build-production=E7=AD=89=E5=BE=85?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=80=9A=E8=BF=87=E5=90=8E=E5=86=8D=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E7=94=9F=E4=BA=A7=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为build-production添加7个测试/检查job作为needs依赖 - 测试失败时不构建生产镜像,避免无效构建占用资源 问题:生产镜像构建和测试并行跑,测试失败了镜像也已经build完了,浪费构建资源。 修复:让build-production等所有核心测试通过后再开始构建。 --- .gitea/workflows/ci-pipeline.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 195721213..53b1328fc 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -1192,6 +1192,13 @@ jobs: runs-on: runtime-builder timeout-minutes: ${{ matrix.timeout }} needs: + - validate-code-quality + - validate-type-check + - validate-migration + - unit-tests + - integration-tests + - frontend-lint + - frontend-unit-test if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'push' && github.ref_name == 'main') strategy: fail-fast: false