Call GitHub API to get the latest version info (#31)

* call github api to get the latest version info

* remove latest case from installer.tests

* update dist
This commit is contained in:
Rimo
2022-09-29 01:08:14 +08:00
committed by GitHub
parent 7771e4ad5d
commit 9dba6ec80f
10 changed files with 7801 additions and 44 deletions

View File

@@ -21,10 +21,10 @@ describe('installer tests', () => {
await io.rmRF(TEMP_DIR)
})
const versions = ['1.7.14', 'latest']
const versions = ['1.7.14']
it.each(versions)('install ossutil %s', async version => {
await installer.getOssutil(version)
await installer.installOssutil(version)
expect(await io.which('ossutil', true)).toBeTruthy()
})