generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update download url to support new architectures for Volta 2.0.0
- Loading branch information
1 parent
2d68418
commit 043aa0b
Showing
3 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,59 @@ describe('buildDownloadUrl', () => { | |
).rejects.toThrowErrorMatchingInlineSnapshot(`"your platform aix is not yet supported"`); | ||
}); | ||
}); | ||
|
||
describe('[email protected]', function () { | ||
test('darwin - x64', async function () { | ||
expect(await buildDownloadUrl('darwin', 'x64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-macos.tar.gz"` | ||
); | ||
}); | ||
|
||
test('darwin - arm64', async function () { | ||
expect(await buildDownloadUrl('darwin', 'arm64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-macos.tar.gz"` | ||
); | ||
}); | ||
|
||
test('linux - x64', async function () { | ||
expect(await buildDownloadUrl('linux', 'x64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-linux.tar.gz"` | ||
); | ||
}); | ||
|
||
test('linux - arm64', async function () { | ||
expect(await buildDownloadUrl('linux', 'arm64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-linux-arm.tar.gz"` | ||
); | ||
}); | ||
|
||
test('linux with variant input', async function () { | ||
expect( | ||
await buildDownloadUrl('linux', 'x64', '1.1.0', 'linux-openssl-rhel') | ||
).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v1.1.0/volta-1.1.0-linux-openssl-rhel.tar.gz"` | ||
); | ||
}); | ||
|
||
test('win32 - x64', async function () { | ||
expect(await buildDownloadUrl('win32', 'x86-64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-windows-x86_64.msi"` | ||
); | ||
}); | ||
|
||
test('win32 - arm64', async function () { | ||
expect(await buildDownloadUrl('win32', 'arm64', '2.0.0')).toMatchInlineSnapshot( | ||
`"https://github.com/volta-cli/volta/releases/download/v2.0.0/volta-2.0.0-windows-arm64.msi"` | ||
); | ||
}); | ||
|
||
test('aix', async function () { | ||
expect( | ||
async () => | ||
await buildDownloadUrl('aix', 'hmm, wat?? (I dont know a valid arch for aix)', '2.0.0') | ||
).rejects.toThrowErrorMatchingInlineSnapshot(`"your platform aix is not yet supported"`); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('getOpenSSLVersion', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters