mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-01-18 19:26:39 +08:00
Use unique CACHE_KEY_PREFIX
.
This commit is contained in:
parent
3b96e2ea68
commit
01b9840538
@ -44,7 +44,7 @@ describe('dependency cache', () => {
|
|||||||
let spySaveState: jest.SpyInstance<void, Parameters<typeof core.saveState>>
|
let spySaveState: jest.SpyInstance<void, Parameters<typeof core.saveState>>
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
workspace = mkdtempSync(join(tmpdir(), 'setup-java-cache-'))
|
workspace = mkdtempSync(join(tmpdir(), 'setup-graalvm-cache-'))
|
||||||
switch (os.platform()) {
|
switch (os.platform()) {
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
process.env['RUNNER_OS'] = 'macOS'
|
process.env['RUNNER_OS'] = 'macOS'
|
||||||
@ -337,7 +337,7 @@ function createStateForMissingBuildFile() {
|
|||||||
jest.spyOn(core, 'getState').mockImplementation(name => {
|
jest.spyOn(core, 'getState').mockImplementation(name => {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'cache-primary-key':
|
case 'cache-primary-key':
|
||||||
return 'setup-java-cache-'
|
return 'setup-graalvm-cache-'
|
||||||
default:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
@ -351,9 +351,9 @@ function createStateForSuccessfulRestore() {
|
|||||||
jest.spyOn(core, 'getState').mockImplementation(name => {
|
jest.spyOn(core, 'getState').mockImplementation(name => {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case 'cache-primary-key':
|
case 'cache-primary-key':
|
||||||
return 'setup-java-cache-primary-key'
|
return 'setup-graalvm-cache-primary-key'
|
||||||
case 'cache-matched-key':
|
case 'cache-matched-key':
|
||||||
return 'setup-java-cache-matched-key'
|
return 'setup-graalvm-cache-matched-key'
|
||||||
default:
|
default:
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
2
dist/cleanup/index.js
generated
vendored
2
dist/cleanup/index.js
generated
vendored
@ -63789,7 +63789,7 @@ const core = __importStar(__nccwpck_require__(2186));
|
|||||||
const glob = __importStar(__nccwpck_require__(8090));
|
const glob = __importStar(__nccwpck_require__(8090));
|
||||||
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key';
|
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key';
|
||||||
const CACHE_MATCHED_KEY = 'cache-matched-key';
|
const CACHE_MATCHED_KEY = 'cache-matched-key';
|
||||||
const CACHE_KEY_PREFIX = 'setup-java';
|
const CACHE_KEY_PREFIX = 'setup-graalvm';
|
||||||
const supportedPackageManager = [
|
const supportedPackageManager = [
|
||||||
{
|
{
|
||||||
id: 'maven',
|
id: 'maven',
|
||||||
|
2
dist/main/index.js
generated
vendored
2
dist/main/index.js
generated
vendored
@ -66784,7 +66784,7 @@ const core = __importStar(__nccwpck_require__(2186));
|
|||||||
const glob = __importStar(__nccwpck_require__(8090));
|
const glob = __importStar(__nccwpck_require__(8090));
|
||||||
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key';
|
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key';
|
||||||
const CACHE_MATCHED_KEY = 'cache-matched-key';
|
const CACHE_MATCHED_KEY = 'cache-matched-key';
|
||||||
const CACHE_KEY_PREFIX = 'setup-java';
|
const CACHE_KEY_PREFIX = 'setup-graalvm';
|
||||||
const supportedPackageManager = [
|
const supportedPackageManager = [
|
||||||
{
|
{
|
||||||
id: 'maven',
|
id: 'maven',
|
||||||
|
@ -34,7 +34,7 @@ import * as glob from '@actions/glob'
|
|||||||
|
|
||||||
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key'
|
const STATE_CACHE_PRIMARY_KEY = 'cache-primary-key'
|
||||||
const CACHE_MATCHED_KEY = 'cache-matched-key'
|
const CACHE_MATCHED_KEY = 'cache-matched-key'
|
||||||
const CACHE_KEY_PREFIX = 'setup-java'
|
const CACHE_KEY_PREFIX = 'setup-graalvm'
|
||||||
|
|
||||||
interface PackageManager {
|
interface PackageManager {
|
||||||
id: 'maven' | 'gradle' | 'sbt'
|
id: 'maven' | 'gradle' | 'sbt'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user