Commit 7eff3cc4cd6 for nodejs
commit 7eff3cc4cd6534dc4b1e79b4738db9c7ec22cd55
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Fri Oct 23 21:44:53 2026 +0900
tools: limit checkout for lint-addon-docs
Exclude unused vendored dependencies from the lint-addon-docs checkout
to reduce checkout time.
Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/66505
Refs: https://github.com/nodejs/node/issues/64972
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index a4997b3d4cc..f6945f9df51 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -28,6 +28,10 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
+ sparse-checkout: |
+ /*
+ !/deps/
+ sparse-checkout-cone-mode: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with: