From 4d1e37f06d0bf3ad79b42bb9e5378c5fab44554f Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Mon, 25 Sep 2023 17:14:14 -0700 Subject: [PATCH] ci(workflow): Hasten checkout with blobless clones 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. --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 46b40a4..589fe36 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v4.1.0 with: fetch-depth: 0 + filter: blob:none - name: Use Docker in rootless mode. uses: ./ - name: Run pre-commit hooks.