@@ -5,8 +5,8 @@ import * as io from '@actions/io'
5
5
import * as os from 'os'
6
6
import * as path from 'path'
7
7
import * as stateHelper from '../lib/state-helper'
8
- import { IGitCommandManager } from '../lib/git-command-manager'
9
- import { IGitSourceSettings } from '../lib/git-source-settings'
8
+ import { IGitCommandManager } from '../lib/git-command-manager'
9
+ import { IGitSourceSettings } from '../lib/git-source-settings'
10
10
11
11
const isWindows = process . platform === 'win32'
12
12
const testWorkspace = path . join ( __dirname , '_temp' , 'git-auth-helper' )
@@ -17,7 +17,7 @@ let localGitConfigPath: string
17
17
let globalGitConfigPath : string
18
18
let runnerTemp : string
19
19
let tempHomedir : string
20
- let git : IGitCommandManager & { env : { [ key : string ] : string } }
20
+ let git : IGitCommandManager & { env : { [ key : string ] : string } }
21
21
let settings : IGitSourceSettings
22
22
let sshPath : string
23
23
let githubServerUrl : string
@@ -33,7 +33,7 @@ describe('git-auth-helper tests', () => {
33
33
34
34
beforeEach ( ( ) => {
35
35
// Mock setSecret
36
- jest . spyOn ( core , 'setSecret' ) . mockImplementation ( ( secret : string ) => { } )
36
+ jest . spyOn ( core , 'setSecret' ) . mockImplementation ( ( secret : string ) => { } )
37
37
38
38
// Mock error/warning/info/debug
39
39
jest . spyOn ( core , 'error' ) . mockImplementation ( jest . fn ( ) )
@@ -710,17 +710,17 @@ async function setup(testName: string): Promise<void> {
710
710
workspace = path . join ( testWorkspace , testName , 'workspace' )
711
711
runnerTemp = path . join ( testWorkspace , testName , 'runner-temp' )
712
712
tempHomedir = path . join ( testWorkspace , testName , 'home-dir' )
713
- await fs . promises . mkdir ( workspace , { recursive : true } )
714
- await fs . promises . mkdir ( runnerTemp , { recursive : true } )
715
- await fs . promises . mkdir ( tempHomedir , { recursive : true } )
713
+ await fs . promises . mkdir ( workspace , { recursive : true } )
714
+ await fs . promises . mkdir ( runnerTemp , { recursive : true } )
715
+ await fs . promises . mkdir ( tempHomedir , { recursive : true } )
716
716
process . env [ 'RUNNER_TEMP' ] = runnerTemp
717
717
process . env [ 'HOME' ] = tempHomedir
718
718
719
719
// Create git config
720
720
globalGitConfigPath = path . join ( tempHomedir , '.gitconfig' )
721
721
await fs . promises . writeFile ( globalGitConfigPath , '' )
722
722
localGitConfigPath = path . join ( workspace , '.git' , 'config' )
723
- await fs . promises . mkdir ( path . dirname ( localGitConfigPath ) , { recursive : true } )
723
+ await fs . promises . mkdir ( path . dirname ( localGitConfigPath ) , { recursive : true } )
724
724
await fs . promises . writeFile ( localGitConfigPath , '' )
725
725
726
726
git = {
0 commit comments