From e93ee81d6f9ae9a60e9d22f40ef9b08074e3a116 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Jun 2026 13:52:10 +0800 Subject: [PATCH] ci: optimize GitHub Actions pipeline with caching and parallel jobs (#11840) Co-authored-by: Claude Opus 4.7 Co-authored-by: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 14 ++++++++++++++ .github/workflows/coverage.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c58e70f3..2b7ce259 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,9 +13,22 @@ jobs: - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 20 + cache: npm - run: npm ci + - run: npm run biome:lint - run: npx antd lint ./src + tsc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm run tsc + build: runs-on: ${{ matrix.os }} strategy: @@ -28,6 +41,7 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: ${{ matrix.node_version }} + cache: npm - run: echo ${{github.ref}} - uses: utooland/setup-utoo@3a51006d0b66afcc32d1b9177a4b200b74f4a8cb # v1 with: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 09a64bfe..135da4e6 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,8 +14,8 @@ jobs: uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 20 + cache: npm - run: echo ${{github.ref}} - uses: utooland/setup-utoo@3a51006d0b66afcc32d1b9177a4b200b74f4a8cb # v1 - run: ut - run: ut test:coverage - - uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1