Fix terraform extract (#187)

On Windows runners, extracting the downloaded CLI zip file was failing because the file didn't have a .zip extension. This commit attempts to solve the problem by adding the extension to the downloaded file before extraction.
This commit is contained in:
Jonathan Camara 2022-05-09 12:19:28 -05:00 committed by GitHub
parent 8b4c280fc8
commit 8aaee7fab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 2 deletions

View file

@ -94,6 +94,8 @@ describe('Setup Terraform', () => {
.fn()
.mockReturnValueOnce('file.zip');
io.mv = jest.fn();
tc.extractZip = jest
.fn()
.mockReturnValueOnce('file');