Skip to content

Commit 57c47bd

Browse files
committed
ci: Use setup-node action to cache dependencies
1 parent 8575729 commit 57c47bd

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.github/workflows/integration-test.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ jobs:
4545
uses: actions/setup-node@v3
4646
with:
4747
node-version: ${{ matrix.node }}
48-
- name: 'Cache node_modules'
49-
uses: actions/cache@v3
50-
with:
51-
path: '~/.npm'
52-
key: ${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321-${{ hashFiles('**/package-lock.json') }} }}
53-
restore-keys: |
54-
${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321-
48+
cache: npm
5549
- name: 'Cache terraform binaries'
5650
uses: actions/cache@v3
5751
with:

.github/workflows/unit-test.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,7 @@ jobs:
6363
uses: actions/setup-node@v3
6464
with:
6565
node-version: ${{ matrix.node }}
66-
- name: 'Cache node_modules'
67-
uses: actions/cache@v3
68-
with:
69-
path: '~/.npm'
70-
key: ${{ runner.os }}-node-v${{ matrix.node }}-210321-${{ hashFiles('**/package-lock.json') }} }}
71-
restore-keys: |
72-
${{ runner.os }}-node-v${{ matrix.node }}-210321-
66+
cache: npm
7367
- run: npm ci
7468
- name: Generating DB clients
7569
run: |

0 commit comments

Comments
 (0)