From: XhmikosR Date: Fri, 13 Dec 2019 15:12:03 +0000 (+0200) Subject: Actions: add npm cache (#29765) X-Git-Tag: v4.5.0~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b77af553250def9f5c9042dc3201cc6e0a8ac299;p=thirdparty%2Fbootstrap.git Actions: add npm cache (#29765) --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f1b9fb573..994972a037 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,6 +42,16 @@ 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 }}-${{ env.cache-name }}- + ${{ runner.OS }}-node-v{{ matrix.node }}- + ${{ runner.OS }}- + - name: Install npm dependencies run: npm install