mirror of
https://github.com/actions/checkout.git
synced 2025-12-15 06:49:23 +00:00
Add sparse checkout support
This commit is contained in:
@@ -733,6 +733,7 @@ async function setup(testName: string): Promise<void> {
|
||||
git.env[name] = value
|
||||
}),
|
||||
shaExists: jest.fn(),
|
||||
sparseCheckout: jest.fn(),
|
||||
submoduleForeach: jest.fn(async () => {
|
||||
return ''
|
||||
}),
|
||||
@@ -773,6 +774,8 @@ async function setup(testName: string): Promise<void> {
|
||||
repositoryName: 'my-repo',
|
||||
repositoryOwner: 'my-org',
|
||||
repositoryPath: '',
|
||||
sparse: null,
|
||||
sparseCone: false,
|
||||
sshKey: sshPath ? 'some ssh private key' : '',
|
||||
sshKnownHosts: '',
|
||||
sshStrict: true,
|
||||
|
||||
Reference in New Issue
Block a user