Add fetchJobs option to parallelize submodule updates

This commit is contained in:
Frits Talbot 2020-08-09 23:30:32 +02:00
parent 2036a08e25
commit ad5dc19390
9 changed files with 49 additions and 5 deletions

View file

@ -760,6 +760,7 @@ async function setup(testName: string): Promise<void> {
clean: true,
commit: '',
fetchDepth: 1,
fetchJobs: 0,
lfs: false,
submodules: false,
nestedSubmodules: false,

View file

@ -75,6 +75,7 @@ describe('input-helper tests', () => {
expect(settings.commit).toBeTruthy()
expect(settings.commit).toBe('1234567890123456789012345678901234567890')
expect(settings.fetchDepth).toBe(1)
expect(settings.fetchJobs).toBe(0)
expect(settings.lfs).toBe(false)
expect(settings.ref).toBe('refs/heads/some-ref')
expect(settings.repositoryName).toBe('some-repo')