mirror of
https://github.com/actions/cache.git
synced 2025-07-12 09:10:44 +00:00
Unit test getCacheVersion
This commit is contained in:
parent
820f06f7d0
commit
bd756c16ae
4 changed files with 49 additions and 10 deletions
|
@ -81,12 +81,12 @@ function createHttpClient(): HttpClient {
|
|||
);
|
||||
}
|
||||
|
||||
function getCacheVersion(): string {
|
||||
export function getCacheVersion(): string {
|
||||
// Add salt to cache version to support breaking changes in cache entry
|
||||
const components = [
|
||||
core.getInput(Inputs.Key),
|
||||
core.getInput(Inputs.RestoreKeys),
|
||||
core.getInput(Inputs.Path),
|
||||
core.getInput(Inputs.Key, { required: true }),
|
||||
core.getInput(Inputs.RestoreKeys, { required: false }),
|
||||
core.getInput(Inputs.Path, { required: true }),
|
||||
versionSalt
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue