@@ -163,6 +163,16 @@ jobs:
163163 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
164164 with :
165165 persist-credentials : false
166+ sparse-checkout : |
167+ /Makefile
168+ /benchmark/
169+ /doc/
170+ /lib/
171+ /src/node_version.h
172+ /tools/
173+ pyproject.toml
174+ *.py
175+ sparse-checkout-cone-mode : false
166176 - name : Set up Python ${{ env.PYTHON_VERSION }}
167177 uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
168178 with :
@@ -181,6 +191,12 @@ jobs:
181191 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
182192 with :
183193 persist-credentials : false
194+ sparse-checkout : |
195+ /Makefile
196+ /tools/pip/
197+ *.yml
198+ *.yaml
199+ sparse-checkout-cone-mode : false
184200 - name : Use Python ${{ env.PYTHON_VERSION }}
185201 uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
186202 with :
@@ -200,6 +216,10 @@ jobs:
200216 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
201217 with :
202218 persist-credentials : false
219+ sparse-checkout : |
220+ /tools/lint-sh.mjs
221+ *.sh
222+ sparse-checkout-cone-mode : false
203223 - run : shellcheck -V
204224 - name : Lint Shell scripts
205225 run : tools/lint-sh.mjs .
@@ -221,6 +241,10 @@ jobs:
221241 with :
222242 fetch-depth : 2
223243 persist-credentials : false
244+ sparse-checkout : |
245+ /tools/lint-pr-url.mjs
246+ /doc/api/
247+ sparse-checkout-cone-mode : false
224248 # GH Actions squashes all PR commits, HEAD^ refers to the base branch.
225249 - run : git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
226250 lint-readme :
@@ -229,6 +253,10 @@ jobs:
229253 - uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
230254 with :
231255 persist-credentials : false
256+ sparse-checkout : |
257+ README.md
258+ /tools/lint-readme-lists.mjs
259+ sparse-checkout-cone-mode : false
232260 - name : Get team members if possible
233261 if : ${{ (github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch) || github.event.ref == github.event.repository.default_branch }}
234262 id : team_members
0 commit comments