mirror of
https://github.com/gradle/actions.git
synced 2026-06-12 06:30:39 +00:00
TEMP: vendor UNRELEASED gradle-actions-caching v0.7.0
Local hand-copied build of gradle-actions-caching v0.7.0, which returns a structured CacheReport from save(). This commit exists only so the source changes can be built and tested against the new contract. Remove this commit once v0.7.0 is released and vendored via the official CI-release workflow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+28
-1
@@ -11,6 +11,23 @@ export declare interface BuildResult {
|
||||
get buildScanFailed(): boolean;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export declare type CacheCleanupStatus = 'enabled' | 'disabled-param' | 'disabled-failure' | 'disabled-config-cache-hit' | 'disabled-readonly';
|
||||
|
||||
/** @public */
|
||||
export declare interface CacheEntryReport {
|
||||
entryName: string;
|
||||
requestedKey?: string;
|
||||
restoredKey?: string;
|
||||
restoredSize?: number;
|
||||
restoredTime?: number;
|
||||
restoredOutcome: string;
|
||||
savedKey?: string;
|
||||
savedSize?: number;
|
||||
savedTime?: number;
|
||||
savedOutcome: string;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export declare interface CacheOptions {
|
||||
disabled: boolean;
|
||||
@@ -24,10 +41,20 @@ export declare interface CacheOptions {
|
||||
excludes: string[];
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export declare interface CacheReport {
|
||||
status: CacheStatus;
|
||||
cleanup?: CacheCleanupStatus;
|
||||
entries: CacheEntryReport[];
|
||||
}
|
||||
|
||||
/** @public */
|
||||
export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available';
|
||||
|
||||
/** @public */
|
||||
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
|
||||
|
||||
/** @public */
|
||||
export declare function save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<string>;
|
||||
export declare function save(gradleUserHome: string, buildResults: BuildResult[], cacheOptions: CacheOptions): Promise<CacheReport>;
|
||||
|
||||
export { }
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gradle-actions-caching",
|
||||
"version": "0.6.0",
|
||||
"version": "0.7.0",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
"types": "./index.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user