From d999706cbbc68d40e9e1e9416ee6b08bb61c3340 Mon Sep 17 00:00:00 2001 From: XiaoXia Bot Date: Thu, 16 Jul 2026 11:32:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(ci):=20runner=E5=88=86=E5=B1=82=E8=B0=83?= =?UTF-8?q?=E5=BA=A6=20-=20L1/L2/L3=E6=8C=89=E4=BB=BB=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - L1(ci-l1): validate + frontend-lint(4个runner,轻量门禁) - L2(ci-l2): unit-tests + integration-tests + build + api-tests(6个runner,构建测试) - L3(ci-l3): deploy + e2e(2个runner,重型部署) --- .gitea/workflows/ci-build.yml | 14 +++++++------- .gitea/workflows/ci-cd.yml | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci-build.yml b/.gitea/workflows/ci-build.yml index da5439f8f..d9ddc4091 100644 --- a/.gitea/workflows/ci-build.yml +++ b/.gitea/workflows/ci-build.yml @@ -35,7 +35,7 @@ concurrency: jobs: build-staging: name: Build Staging ${{ matrix.service_display }} Image - runs-on: host + runs-on: ci-l2 timeout-minutes: ${{ matrix.timeout }} if: github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'develop') strategy: @@ -157,7 +157,7 @@ jobs: ' deploy-staging: name: Deploy Staging (Watchtower auto-deploy) - runs-on: saas + runs-on: ci-l3 timeout-minutes: 15 needs: - build-staging @@ -308,7 +308,7 @@ jobs: ' staging-e2e: name: Staging E2E Tests - runs-on: saas + runs-on: ci-l3 timeout-minutes: 15 if: github.ref_name == 'develop' || github.ref_name == 'main' needs: deploy-staging @@ -388,7 +388,7 @@ jobs: ' staging-api-tests: name: Staging API Integration Tests - runs-on: saas + runs-on: ci-l2 timeout-minutes: 10 if: github.ref_name == 'develop' || github.ref_name == 'main' needs: deploy-staging @@ -468,7 +468,7 @@ jobs: ' build-production: name: Build Production ${{ matrix.service_display }} Image - runs-on: host + runs-on: ci-l2 timeout-minutes: ${{ matrix.timeout }} needs: if: startsWith(github.ref, 'refs/tags/v') @@ -592,7 +592,7 @@ jobs: ' deploy-production: name: Deploy Production - runs-on: saas + runs-on: ci-l3 timeout-minutes: 30 if: startsWith(github.ref, 'refs/tags/v') needs: @@ -735,7 +735,7 @@ jobs: ' production-e2e: name: Production Browser E2E - runs-on: saas + runs-on: ci-l3 timeout-minutes: 15 if: startsWith(github.ref, 'refs/tags/v') needs: deploy-production diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 421d63385..c70f48819 100755 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -35,7 +35,7 @@ concurrency: jobs: validate: name: Validate Code Quality And Tests - runs-on: host + runs-on: ci-l1 timeout-minutes: 10 env: DATABASE_URL: postgresql+psycopg://postgres:postgres@127.0.0.1:5432/xiaoxia_saas @@ -164,7 +164,7 @@ jobs: ' unit-tests: name: Unit Tests - runs-on: host + runs-on: ci-l2 timeout-minutes: 8 env: USE_IN_MEMORY_DB: 'true' @@ -235,7 +235,7 @@ jobs: ' integration-tests: name: Integration Tests - runs-on: host + runs-on: ci-l2 timeout-minutes: 30 if: always() needs: validate @@ -352,7 +352,7 @@ jobs: ' frontend-lint: name: Frontend Lint - runs-on: host + runs-on: ci-l1 timeout-minutes: 10 steps: - name: Checkout code -- 2.54.0