feat(ci): sparse checkout in 'detect-changes' to speed up ci

This commit is contained in:
ethernet 2026-07-31 02:29:15 -04:00
parent c9583bbeba
commit f81237cecd

View file

@ -55,6 +55,11 @@ jobs:
event_name: ${{ github.event_name }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
scripts/ci/classify_changes.py
.github/actions/detect-changes/action.yml
sparse-checkout-cone-mode: false
- name: Detect affected areas
id: classify
uses: ./.github/actions/detect-changes
@ -180,7 +185,18 @@ jobs:
# ─────────────────────────────────────────────────────────────────────
comment-live:
name: CI review comment (live)
needs: [detect, review-labels, lockfile-diff, supply-chain, osv-scanner, uv-lockfile, history-check, contributor-check, e2e-desktop]
needs:
[
detect,
review-labels,
lockfile-diff,
supply-chain,
osv-scanner,
uv-lockfile,
history-check,
contributor-check,
e2e-desktop
]
if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork != true
runs-on: arc-runner-set
timeout-minutes: 40