From fb4ff115104e565e7cfa724ea3d39760c07f851f Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Mon, 2 Aug 2021 10:41:35 +0900 Subject: [PATCH] feat(actions): use cache for `actions/setup-node` (#1017) --- .github/workflows/test.yml | 1 + test/__snapshots__/init.test.js.snap | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9204b45..abcd162f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: "npm" - run: npm --global install npm@latest - run: npm ci - run: npm run lint diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index 4860e571..88d04071 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -243,6 +243,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: \${{ matrix.node-version }} + cache: \\"npm\\" - run: npm --global install npm@latest - run: npm ci - run: npm run lint