Add logic for modules caching

Such files as cache-restore.ts, cache-utils.ts, constants.ts,
cache-save.ts we added. Main.ts file now incorporates logic for using
files mentioned above.
This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-21 16:21:14 +03:00
parent 5ba3482d38
commit 25a133c257
7 changed files with 198 additions and 2 deletions

View file

@ -14,7 +14,7 @@ inputs:
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user.
default: ${{ github.token }}
cache:
description: 'Used to specify whether go-modules caching is needed or not. Supported values: true, false.'
description: 'Used to specify whether go-modules caching is needed. Set to true, if you'd like to enable caching.'
cache-dependency-path:
description: 'Used to specify the path to a dependency file: go.sum.'
runs: