Browse Source
ci: optimize GitHub Actions pipeline with caching and parallel jobs (#11840)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
pull/11851/head
afc163
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
15 additions and
1 deletions
-
.github/workflows/ci.yml
-
.github/workflows/coverage.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: |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|