Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! tools: use sparse-checkout in linter jobs
remove sparse checkout that takes longer
  • Loading branch information
aduh95 committed Dec 19, 2025
commit 095b2f590c15e46811c098daa504c2013f9e7060
40 changes: 6 additions & 34 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ jobs:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
sparse-checkout: |
*
!doc/
!lib/
!.github/
!.devcontainer/
sparse-checkout-cone-mode: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
Expand All @@ -50,13 +43,6 @@ jobs:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
sparse-checkout: |
*
!doc/
!lib/
!.github/
!.devcontainer/
sparse-checkout-cone-mode: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
Expand All @@ -74,13 +60,6 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
sparse-checkout: |
*
!doc/
!lib/
!.github/
!.devcontainer/
sparse-checkout-cone-mode: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
Expand Down Expand Up @@ -119,13 +98,6 @@ jobs:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
persist-credentials: false
sparse-checkout: |
*
!deps/
!src/
!.github/
!.devcontainer/
sparse-checkout-cone-mode: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
Expand Down Expand Up @@ -220,8 +192,8 @@ jobs:
with:
persist-credentials: false
sparse-checkout: |
Makefile
tools/pip/
/Makefile
/tools/pip/
*.yml
*.yaml
sparse-checkout-cone-mode: false
Expand All @@ -245,7 +217,7 @@ jobs:
with:
persist-credentials: false
sparse-checkout: |
tools/lint-sh.mjs
/tools/lint-sh.mjs
*.sh
sparse-checkout-cone-mode: false
- run: shellcheck -V
Expand All @@ -270,8 +242,8 @@ jobs:
fetch-depth: 2
persist-credentials: false
sparse-checkout: |
tools/lint-pr-url.mjs
doc/api/
/tools/lint-pr-url.mjs
/doc/api/
sparse-checkout-cone-mode: false
# GH Actions squashes all PR commits, HEAD^ refers to the base branch.
- run: git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
Expand All @@ -283,7 +255,7 @@ jobs:
persist-credentials: false
sparse-checkout: |
README.md
tools/lint-readme-lists.mjs
/tools/lint-readme-lists.mjs
sparse-checkout-cone-mode: false
- name: Get team members if possible
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 }}
Expand Down