From 7dc04121c2a342458a26a69f18d8095fc74b6a81 Mon Sep 17 00:00:00 2001 From: Wagner Santos Date: Sat, 22 Aug 2020 05:41:06 -0300 Subject: [PATCH] ci: cache npm dependencies on CI --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcde19a..798aaa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,14 @@ jobs: - uses: actions/setup-node@v1 with: node-version: '12.x' + - uses: actions/cache@v2 + with: + path: | + ~/.npm + **/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- - run: npm install - run: npm test -- --ci --coverage release: