mirror of
https://github.com/actions/setup-go.git
synced 2025-12-16 20:52:35 +00:00
parent
289392effb
commit
fbd97068ad
25 changed files with 449 additions and 3196 deletions
|
|
@ -388,7 +388,7 @@ describe('setup-go', () => {
|
|||
|
||||
const expPath = path.win32.join(toolPath, 'bin');
|
||||
expect(dlSpy).toHaveBeenCalledWith(
|
||||
'https://go.dev/dl/go1.13.1.windows-amd64.zip',
|
||||
'https://storage.googleapis.com/golang/go1.13.1.windows-amd64.zip',
|
||||
'C:\\temp\\go1.13.1.windows-amd64.zip',
|
||||
undefined
|
||||
);
|
||||
|
|
@ -945,7 +945,7 @@ use .
|
|||
const expectedUrl =
|
||||
platform === 'win32'
|
||||
? `https://github.com/actions/go-versions/releases/download/${version}/go-${version}-${platform}-${arch}.${fileExtension}`
|
||||
: `https://go.dev/dl/go${version}.${osSpec}-${arch}.${fileExtension}`;
|
||||
: `https://storage.googleapis.com/golang/go${version}.${osSpec}-${arch}.${fileExtension}`;
|
||||
|
||||
// ... but not in the local cache
|
||||
findSpy.mockImplementation(() => '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue