Add unit tests for actionUtils (#93)

* Add unit tests for actionUtils

* Fix file size on ubuntu and test name

* Remove unused import
This commit is contained in:
Josh Gross 2019-11-13 16:13:00 -05:00 committed by GitHub
parent bb828da54c
commit c0584c42d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 233 additions and 2 deletions

View file

@ -70,7 +70,11 @@ export function setOutputAndState(
export function getCacheState(): ArtifactCacheEntry | undefined {
const stateData = core.getState(State.CacheResult);
core.debug(`State: ${stateData}`);
return (stateData && JSON.parse(stateData)) as ArtifactCacheEntry;
if (stateData) {
return JSON.parse(stateData) as ArtifactCacheEntry;
}
return undefined;
}
export function resolvePath(filePath: string): string {