From 11228b423db6b5a9d4990ddc2b25090728c819ee Mon Sep 17 00:00:00 2001 From: vitalyster Date: Wed, 11 Nov 2020 03:46:11 +0300 Subject: CI: use NPM cache (#11) --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d23beb46..05793a62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,5 +19,16 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - - name: Build + - name: Cache NPM modules + uses: actions/cache@v2 + env: + cache-name: cache-npm-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Run tests run: gradle check -- cgit v1.2.3