mirror of
https://github.com/imranismail/setup-kustomize.git
synced 2026-05-17 10:15:23 +00:00
Add support for version ranges (#9)
* Add support for version ranges * Fix audit * Update workflow * Update dist * Remove unexpected input * Add as step
This commit is contained in:
@@ -10,6 +10,7 @@ process.env['RUNNER_TOOL_CACHE'] = toolDir
|
||||
process.env['RUNNER_TEMP'] = tempDir
|
||||
|
||||
import * as installer from '../src/installer'
|
||||
import * as semver from 'semver'
|
||||
|
||||
const IS_WINDOWS = os.platform() === 'win32'
|
||||
|
||||
@@ -24,6 +25,10 @@ describe('installer tests', () => {
|
||||
await io.rmRF(tempDir)
|
||||
}, 100000)
|
||||
|
||||
it('Acquires the latest kustomize version 3.x successfully', () => {
|
||||
expect(async () => await installer.getKustomize('3.x')).not.toThrow()
|
||||
}, 100000)
|
||||
|
||||
it('Acquires kustomize version 3.2.0 successfully', async () => {
|
||||
await installer.getKustomize('3.2.0')
|
||||
const kustomizeDir = path.join(toolDir, 'kustomize', '3.2.0', os.arch())
|
||||
|
||||
Reference in New Issue
Block a user