Skip to content

Commit

Permalink
ci(workflow): Hasten checkout with blobless clones
Browse files Browse the repository at this point in the history
In v4.1.0, actions/checkout recently introduced support for Git's
partial clones. Partial clones are smaller than full clones
(`fetch-depth: 0`), because they don't clone historical blobs and/or
trees. In partial clones, Git operations will typically fetch data that
isn't available locally as needed. Hence, prefer blobless clones, the
partial clones that give the best performance overall, to full clones.
  • Loading branch information
Kurt-von-Laven committed Sep 29, 2023
1 parent e168370 commit 4d1e37f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0
filter: blob:none
- name: Use Docker in rootless mode.
uses: ./
- name: Run pre-commit hooks.
Expand Down

0 comments on commit 4d1e37f

Please sign in to comment.