mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 14:29:23 +00:00
Add sparse checkout support
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -113,6 +113,20 @@ jobs:
|
||||
- name: Verify submodules recursive
|
||||
run: __test__/verify-submodules-recursive.sh
|
||||
|
||||
# Sparse checkout
|
||||
- name: Sparse checkout
|
||||
uses: ./
|
||||
with:
|
||||
ref: test-data/v2/sparse-checkout
|
||||
path: sparse-checkout
|
||||
sparse: |
|
||||
dir2
|
||||
dir3
|
||||
sparse-cone: true
|
||||
- name: Verify sparse checkout
|
||||
run: __test__/verify-sparse-checkout.sh
|
||||
|
||||
|
||||
# Basic checkout using REST API
|
||||
- name: Remove basic
|
||||
if: runner.os != 'windows'
|
||||
|
||||
Reference in New Issue
Block a user