Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/icons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-12-24 19:38:31 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-12-24 19:38:31 +0300
commit1e67d7239dc5d3191194548ad18af16cdadf9c84 (patch)
treed41b5e07316b2fd437ddb4db0e7a1d3c51b6e515 /.github
parent5ed9d7d4c8e2430301eca34479f053f7a88ffbb0 (diff)
CI: add caching
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 9951db407..528d7f163 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,6 +20,15 @@ jobs:
- run: npm --version
- run: java -version
+ - name: Set up npm cache
+ uses: actions/cache@v1
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ restore-keys: |
+ ${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
+ ${{ runner.OS }}-node-v${{ matrix.node }}-
+
- name: Install npm dependencies
run: npm ci