git.iko.soy/typeable/elm-ui
on master help sign in
cache .npm instead of node_modules
5be7adeMatthew Griffith
.github/workflows/tests.yml+4−9
@@ -19,17 +19,12 @@ jobs:
19 with:
19 with:
20 node-version: 10
20 node-version: 10
21
21
22− - name: Cache node modules
23− uses: actions/cache@v1
22+ - uses: actions/cache@v1
24− env:
25− cache-name: cache-node-modules
26 with:
23 with:
27− path: node_modules
24+ path: ~/.npm
28− key: ${{ runner.os }}-testing-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29 restore-keys: |
26 restore-keys: |
30− ${{ runner.os }}-testing-${{ env.cache-name }}-
27+ ${{ runner.os }}-node-
31− ${{ runner.os }}-testing-
32− ${{ runner.os }}-
33
28
34 - name: Install
29 - name: Install
35 run: npm install
30 run: npm install