mirror of
https://github.com/actions/setup-python.git
synced 2025-07-18 22:28:22 +02:00
add unit and e2e tests
This commit is contained in:
parent
c98dcdec10
commit
b321c7b928
14 changed files with 825 additions and 42 deletions
|
@ -9,7 +9,7 @@ export enum State {
|
|||
|
||||
abstract class CacheDistributor {
|
||||
protected CACHE_KEY_PREFIX = 'setup-python';
|
||||
constructor(protected toolName: string, protected cacheDependencyPath: string) {}
|
||||
constructor(protected packageManager: string, protected cacheDependencyPath: string) {}
|
||||
|
||||
protected abstract getCacheGlobalDirectories(): Promise<string[]>;
|
||||
protected abstract computeKeys(): Promise<{
|
||||
|
@ -42,7 +42,7 @@ abstract class CacheDistributor {
|
|||
core.saveState(State.CACHE_MATCHED_KEY, matchedKey);
|
||||
core.info(`Cache restored from key: ${matchedKey}`);
|
||||
} else {
|
||||
core.info(`${this.toolName} cache is not found`);
|
||||
core.info(`${this.packageManager} cache is not found`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue