From af9067e3c71b33f944a8860290ffdbbd3c4323fb Mon Sep 17 00:00:00 2001 From: Sampark Sharma Date: Wed, 4 Jan 2023 08:10:32 +0000 Subject: [PATCH] Fix tests --- .licenses/npm/@actions/cache.dep.yml | 2 +- src/restoreImpl.ts | 7 +++++-- src/saveImpl.ts | 7 +++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.licenses/npm/@actions/cache.dep.yml b/.licenses/npm/@actions/cache.dep.yml index d35c808..dcc3afa 100644 --- a/.licenses/npm/@actions/cache.dep.yml +++ b/.licenses/npm/@actions/cache.dep.yml @@ -1,6 +1,6 @@ --- name: "@actions/cache" -version: 3.1.1 +version: 3.1.2 type: npm summary: homepage: diff --git a/src/restoreImpl.ts b/src/restoreImpl.ts index fd6d8d2..6214cfd 100644 --- a/src/restoreImpl.ts +++ b/src/restoreImpl.ts @@ -17,7 +17,8 @@ async function restoreImpl( // Validate inputs, this can cause task failure if (!utils.isValidEvent()) { utils.logWarning( - `Event Validation Error: The event type ${process.env[Events.Key] + `Event Validation Error: The event type ${ + process.env[Events.Key] } is not supported because it's not tied to a branch or tag ref.` ); return; @@ -30,7 +31,9 @@ async function restoreImpl( const cachePaths = utils.getInputAsArray(Inputs.Path, { required: true }); - const enableCrossOsArchive = utils.getInputAsBool(Inputs.EnableCrossOsArchive); + const enableCrossOsArchive = utils.getInputAsBool( + Inputs.EnableCrossOsArchive + ); const cacheKey = await cache.restoreCache( cachePaths, diff --git a/src/saveImpl.ts b/src/saveImpl.ts index 1c0ce6c..5fd4513 100644 --- a/src/saveImpl.ts +++ b/src/saveImpl.ts @@ -19,7 +19,8 @@ async function saveImpl(stateProvider: IStateProvider): Promise { if (!utils.isValidEvent()) { utils.logWarning( - `Event Validation Error: The event type ${process.env[Events.Key] + `Event Validation Error: The event type ${ + process.env[Events.Key] } is not supported because it's not tied to a branch or tag ref.` ); return; @@ -51,7 +52,9 @@ async function saveImpl(stateProvider: IStateProvider): Promise { required: true }); - const enableCrossOsArchive = utils.getInputAsBool(Inputs.EnableCrossOsArchive); + const enableCrossOsArchive = utils.getInputAsBool( + Inputs.EnableCrossOsArchive + ); cacheId = await cache.saveCache( cachePaths,