mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 20:53:43 +00:00
Move condition to the installer
This commit is contained in:
parent
18c62c8dd3
commit
17fabf6bf1
5 changed files with 36 additions and 21 deletions
|
@ -702,7 +702,7 @@ describe('setup-go', () => {
|
|||
|
||||
findSpy.mockImplementation(() => '');
|
||||
dlSpy.mockImplementation(async () => '/some/temp/path');
|
||||
const toolPath = path.normalize('/cache/go/1.17.5/x64');
|
||||
const toolPath = path.normalize('/cache/go/1.17.6/x64');
|
||||
extractTarSpy.mockImplementation(async () => '/some/other/temp/path');
|
||||
cacheSpy.mockImplementation(async () => toolPath);
|
||||
|
||||
|
@ -722,7 +722,7 @@ describe('setup-go', () => {
|
|||
expect(logSpy).toHaveBeenCalledWith('Adding to the cache ...');
|
||||
expect(logSpy).toHaveBeenCalledWith('Added go to the path');
|
||||
expect(logSpy).toHaveBeenCalledWith(
|
||||
`Successfully set up Go version ${versionSpec}`
|
||||
`Successfully set up Go version ${patchVersion}`
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue