Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 2bc4adf

Browse files
committed
Add back caching of npm modules.
1 parent 0683e96 commit 2bc4adf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/js-parser.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ jobs:
1414
with:
1515
node-version: 14
1616

17+
- name: Cache node modules as long as os and package-lock.json do not change.
18+
uses: actions/cache@v2
19+
env:
20+
cache-name: cache-node-modules
21+
with:
22+
path: ~/.npm
23+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
24+
restore-keys: |
25+
${{ runner.os }}-test-${{ env.cache-name }}-
26+
${{ runner.os }}-test-
27+
${{ runner.os }}-
28+
1729
- name: Test js parser.
1830
working-directory: ./js-parser
1931
run: |

0 commit comments

Comments
 (0)