mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-02-23 12:20:10 +08:00
Update dependencies.
This commit is contained in:
parent
90a2c32c8b
commit
cf001e2d43
@ -18,6 +18,9 @@ test('request invalid version/javaVersion', async () => {
|
|||||||
try {
|
try {
|
||||||
await graalvm.setUpGraalVMRelease('', combination[0], combination[1])
|
await graalvm.setUpGraalVMRelease('', combination[0], combination[1])
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (!(err instanceof Error)) {
|
||||||
|
fail(`Unexpected non-Erro: ${err}`)
|
||||||
|
}
|
||||||
error = err
|
error = err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +42,9 @@ test('find version/javaVersion', async () => {
|
|||||||
const invalidRelease = {...latestRelease, tag_name: 'invalid'}
|
const invalidRelease = {...latestRelease, tag_name: 'invalid'}
|
||||||
findGraalVMVersion(invalidRelease)
|
findGraalVMVersion(invalidRelease)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (!(err instanceof Error)) {
|
||||||
|
fail(`Unexpected non-Erro: ${err}`)
|
||||||
|
}
|
||||||
error = err
|
error = err
|
||||||
}
|
}
|
||||||
expect(error.message).toContain('Could not find latest GraalVM release:')
|
expect(error.message).toContain('Could not find latest GraalVM release:')
|
||||||
@ -46,6 +52,9 @@ test('find version/javaVersion', async () => {
|
|||||||
try {
|
try {
|
||||||
findHighestJavaVersion(latestRelease, 'invalid')
|
findHighestJavaVersion(latestRelease, 'invalid')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
if (!(err instanceof Error)) {
|
||||||
|
fail(`Unexpected non-Erro: ${err}`)
|
||||||
|
}
|
||||||
error = err
|
error = err
|
||||||
}
|
}
|
||||||
expect(error.message).toContain('Could not find highest Java version.')
|
expect(error.message).toContain('Could not find highest Java version.')
|
||||||
|
17338
dist/cleanup/index.js
generated
vendored
17338
dist/cleanup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
17458
dist/main/index.js
generated
vendored
17458
dist/main/index.js
generated
vendored
File diff suppressed because one or more lines are too long
6875
package-lock.json
generated
6875
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -42,7 +42,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.5.2",
|
"@types/jest": "^27.5.2",
|
||||||
"@types/node": "^17.0.6",
|
"@types/node": "^18.15.11",
|
||||||
"@types/semver": "^7.3.13",
|
"@types/semver": "^7.3.13",
|
||||||
"@types/uuid": "^8.3.4",
|
"@types/uuid": "^8.3.4",
|
||||||
"@typescript-eslint/parser": "^5.8.1",
|
"@typescript-eslint/parser": "^5.8.1",
|
||||||
@ -50,10 +50,10 @@
|
|||||||
"eslint": "^8.6.0",
|
"eslint": "^8.6.0",
|
||||||
"eslint-plugin-github": "^4.3.5",
|
"eslint-plugin-github": "^4.3.5",
|
||||||
"eslint-plugin-jest": "^25.3.4",
|
"eslint-plugin-jest": "^25.3.4",
|
||||||
"jest": "^27.4.5",
|
"jest": "^29.5.0",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"prettier": "2.5.1",
|
"prettier": "2.5.1",
|
||||||
"ts-jest": "^27.1.2",
|
"ts-jest": "^29.1.0",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^5.0.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -167,6 +167,10 @@ export async function save(id: string): Promise<void> {
|
|||||||
await cache.saveCache(packageManager.path, primaryKey)
|
await cache.saveCache(packageManager.path, primaryKey)
|
||||||
core.info(`Cache saved with the key: ${primaryKey}`)
|
core.info(`Cache saved with the key: ${primaryKey}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
if (!(error instanceof Error)) {
|
||||||
|
core.info(`Not an Error: ${error}`)
|
||||||
|
throw error
|
||||||
|
}
|
||||||
if (error.name === cache.ReserveCacheError.name) {
|
if (error.name === cache.ReserveCacheError.name) {
|
||||||
core.info(error.message)
|
core.info(error.message)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user