From 88231b7d0873f361d9cb01c1c50a99b2f9bce9a0 Mon Sep 17 00:00:00 2001 From: inoway46 Date: Sat, 24 Oct 2026 01:36:27 +0900 Subject: [PATCH] tools: limit checkout for lint-js-and-md Exclude OpenSSL and V8 files outside deps/v8/include from the JS/MD lint checkout. Keep the V8 headers for Markdown link validation and include all other paths by default. This reduces the tracked checkout size by about 429 MiB without changing the runner or lint targets. Signed-off-by: inoway46 Assisted-by: Codex --- .github/workflows/linters.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index f6945f9df517..de5482c97b87 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -103,6 +103,12 @@ jobs: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false + sparse-checkout: | + /* + !/deps/openssl/ + !/deps/v8/* + /deps/v8/include/ + sparse-checkout-cone-mode: false - name: Use Node.js ${{ env.NODE_VERSION }} id: setup-node uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0