mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 09:10:16 +03:00
Support fetch-jobs: 0 to use as many jobs as there are processors
The default is now fetch-jobs: -1, which is the new value for reverting to normal git behavior (provide no --jobs argument).
This commit is contained in:
parent
ad5dc19390
commit
a5c1ce924a
7 changed files with 19 additions and 15 deletions
|
@ -760,7 +760,7 @@ async function setup(testName: string): Promise<void> {
|
|||
clean: true,
|
||||
commit: '',
|
||||
fetchDepth: 1,
|
||||
fetchJobs: 0,
|
||||
fetchJobs: -1,
|
||||
lfs: false,
|
||||
submodules: false,
|
||||
nestedSubmodules: false,
|
||||
|
|
|
@ -75,7 +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.fetchJobs).toBe(-1)
|
||||
expect(settings.lfs).toBe(false)
|
||||
expect(settings.ref).toBe('refs/heads/some-ref')
|
||||
expect(settings.repositoryName).toBe('some-repo')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue