@@ -145,6 +145,16 @@ jobs:
145145 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
146146 with :
147147 persist-credentials : false
148+ sparse-checkout : |
149+ /Makefile
150+ /benchmark/
151+ /doc/
152+ /lib/
153+ /src/node_version.h
154+ /tools/
155+ pyproject.toml
156+ *.py
157+ sparse-checkout-cone-mode : false
148158 - name : Set up Python ${{ env.PYTHON_VERSION }}
149159 uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
150160 with :
@@ -162,6 +172,12 @@ jobs:
162172 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
163173 with :
164174 persist-credentials : false
175+ sparse-checkout : |
176+ /Makefile
177+ /tools/pip/
178+ *.yml
179+ *.yaml
180+ sparse-checkout-cone-mode : false
165181 - name : Use Python ${{ env.PYTHON_VERSION }}
166182 uses : actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
167183 with :
@@ -180,6 +196,10 @@ jobs:
180196 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
181197 with :
182198 persist-credentials : false
199+ sparse-checkout : |
200+ /tools/lint-sh.mjs
201+ *.sh
202+ sparse-checkout-cone-mode : false
183203 - run : shellcheck -V
184204 - name : Lint Shell scripts
185205 run : tools/lint-sh.mjs .
@@ -201,6 +221,10 @@ jobs:
201221 with :
202222 fetch-depth : 2
203223 persist-credentials : false
224+ sparse-checkout : |
225+ /tools/lint-pr-url.mjs
226+ /doc/api/
227+ sparse-checkout-cone-mode : false
204228 # GH Actions squashes all PR commits, HEAD^ refers to the base branch.
205229 - run : git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
206230 lint-readme :
@@ -209,6 +233,10 @@ jobs:
209233 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
210234 with :
211235 persist-credentials : false
236+ sparse-checkout : |
237+ README.md
238+ /tools/lint-readme-lists.mjs
239+ sparse-checkout-cone-mode : false
212240 - name : Get team members if possible
213241 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 }}
214242 id : team_members
0 commit comments