From 10b88ee9bf49147ed6c3d9c3a38a0e6c88e1b78c Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Sun, 17 Nov 2019 19:59:01 +0900 Subject: [PATCH] gha: Add cache step (#87) --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd0d735..2316b5a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,14 @@ jobs: with: node-version: '${{ steps.nvm.outputs.NVMRC }}' + - name: Cache + uses: actions/cache@v1.0.1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm ci - run: npm run format:check