1
0
Fork 0
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:
Ethan Dennis 2020-03-16 09:19:53 -07:00
parent 820f06f7d0
commit bd756c16ae
No known key found for this signature in database
GPG key ID: 32E74B75DB4065DD
4 changed files with 49 additions and 10 deletions

View file

@ -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
];