diff options
author | vitalyster | 2020-11-11 03:46:11 +0300 |
---|---|---|
committer | GitHub | 2020-11-11 03:46:11 +0300 |
commit | 11228b423db6b5a9d4990ddc2b25090728c819ee (patch) | |
tree | 1e4cdb158974f336626e33a19611dc12b900be46 /.github/workflows/ci.yml | |
parent | 96ef97b00ca65281feab91eb75150eeaaa2512e6 (diff) |
CI: use NPM cache (#11)
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 13 |
1 files changed, 12 insertions, 1 deletions
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 |