Loading src/cache-gradle-user-home.ts +2 −4 Changes for src/cache-gradle-user-home.ts: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,7 @@ export class GradleUserHomeCache extends AbstractCache { super('gradle', 'Gradle User Home') } async restore(): Promise<void> { await super.restore() async afterRestore(): Promise<void> { await this.reportCacheEntrySize('as restored from cache') await this.restoreCommonArtifacts() await this.reportCacheEntrySize('after restoring common artifacts') Loading Loading @@ -119,9 +118,8 @@ export class GradleUserHomeCache extends AbstractCache { core.info('-----------------------') } async save(): Promise<void> { async beforeSave(): Promise<void> { await this.saveCommonArtifacts() await super.save() } private async saveCommonArtifacts(): Promise<void> { Loading src/cache-utils.ts +9 Changes for src/cache-utils.ts: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -109,6 +109,9 @@ export abstract class AbstractCache { core.info( `${this.cacheDescription} restored from cache key: ${cacheResult}` ) await this.afterRestore() return } Loading @@ -134,6 +137,8 @@ export abstract class AbstractCache { } } protected async afterRestore(): Promise<void> {} async save(): Promise<void> { if (!this.cacheOutputExists()) { this.debug(`No ${this.cacheDescription} to cache.`) Loading @@ -157,6 +162,8 @@ export abstract class AbstractCache { return } await this.beforeSave() core.info( `Caching ${this.cacheDescription} with cache key: ${cacheKey}` ) Loading @@ -166,6 +173,8 @@ export abstract class AbstractCache { return } protected async beforeSave(): Promise<void> {} protected async saveCache( cachePath: string[], cacheKey: string Loading Loading
src/cache-gradle-user-home.ts +2 −4 Changes for src/cache-gradle-user-home.ts: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -32,8 +32,7 @@ export class GradleUserHomeCache extends AbstractCache { super('gradle', 'Gradle User Home') } async restore(): Promise<void> { await super.restore() async afterRestore(): Promise<void> { await this.reportCacheEntrySize('as restored from cache') await this.restoreCommonArtifacts() await this.reportCacheEntrySize('after restoring common artifacts') Loading Loading @@ -119,9 +118,8 @@ export class GradleUserHomeCache extends AbstractCache { core.info('-----------------------') } async save(): Promise<void> { async beforeSave(): Promise<void> { await this.saveCommonArtifacts() await super.save() } private async saveCommonArtifacts(): Promise<void> { Loading
src/cache-utils.ts +9 Changes for src/cache-utils.ts: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -109,6 +109,9 @@ export abstract class AbstractCache { core.info( `${this.cacheDescription} restored from cache key: ${cacheResult}` ) await this.afterRestore() return } Loading @@ -134,6 +137,8 @@ export abstract class AbstractCache { } } protected async afterRestore(): Promise<void> {} async save(): Promise<void> { if (!this.cacheOutputExists()) { this.debug(`No ${this.cacheDescription} to cache.`) Loading @@ -157,6 +162,8 @@ export abstract class AbstractCache { return } await this.beforeSave() core.info( `Caching ${this.cacheDescription} with cache key: ${cacheKey}` ) Loading @@ -166,6 +173,8 @@ export abstract class AbstractCache { return } protected async beforeSave(): Promise<void> {} protected async saveCache( cachePath: string[], cacheKey: string Loading