Configure throttle plugin and allow setting token on the action to increase rate limit

This commit is contained in:
Imran Ismail
2021-05-12 13:20:07 +08:00
parent b67a0e7e1b
commit 60d57572ce
14 changed files with 23344 additions and 15473 deletions

View File

@@ -20,8 +20,8 @@ describe('installer tests', () => {
})
it('Acquires the max satisfying version range', async () => {
await installer.getKustomize('~> 3.0')
const kustomizeDir = path.join(toolDir, 'kustomize', '~> 3.0', os.arch())
await installer.getKustomize('*')
const kustomizeDir = path.join(toolDir, 'kustomize', '*', os.arch())
expect(fs.existsSync(`${kustomizeDir}.complete`)).toBe(true)
if (IS_WINDOWS) {
@@ -95,12 +95,7 @@ describe('installer tests', () => {
})
it('Uses version of kustomize installed in cache', async () => {
const kustomizeDir: string = path.join(
toolDir,
'kustomize',
'3.2.0',
os.arch()
)
const kustomizeDir = path.join(toolDir, 'kustomize', '3.2.0', os.arch())
await io.mkdirP(kustomizeDir)
@@ -112,12 +107,7 @@ describe('installer tests', () => {
})
it('Resolves semantic versions of kustomize installed in cache', async () => {
const kustomizeDir: string = path.join(
toolDir,
'kustomize',
'3.0.0',
os.arch()
)
const kustomizeDir = path.join(toolDir, 'kustomize', '3.0.0', os.arch())
await io.mkdirP(kustomizeDir)