From b7d34356fcf7dd8891901a7bee380e08df63dfbb Mon Sep 17 00:00:00 2001 From: jongwooo Date: Mon, 14 Nov 2022 00:13:44 +0900 Subject: [PATCH] ci: Use setup-node action to cache dependencies Signed-off-by: jongwooo --- .github/workflows/integration-test.yaml | 8 +------- .github/workflows/unit-test.yaml | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index d0d9ab4..a1ba0ed 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -45,13 +45,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - name: 'Cache node_modules' - uses: actions/cache@v3 - with: - path: '~/.npm' - key: ${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321-${{ hashFiles('**/package-lock.json') }} }} - restore-keys: | - ${{ runner.os }}-node-v${{ matrix.node }}-integration-npm-210321- + cache: npm - name: 'Cache terraform binaries' uses: actions/cache@v3 with: diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 4139b0e..12001c6 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -63,13 +63,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - - name: 'Cache node_modules' - uses: actions/cache@v3 - with: - path: '~/.npm' - key: ${{ runner.os }}-node-v${{ matrix.node }}-210321-${{ hashFiles('**/package-lock.json') }} }} - restore-keys: | - ${{ runner.os }}-node-v${{ matrix.node }}-210321- + cache: npm - run: npm ci - name: Generating DB clients run: |