From 4c0ecba84a5255d6df924415368a1cdbbda4109e Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 30 Nov 2020 10:11:55 -0500 Subject: [PATCH] Cache node_modules and use frozen lockfile --- .github/workflows/lint.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a5832e9ce3..6bc4190481 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,8 +20,14 @@ jobs: with: node-version: 12 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + - name: Install Node.js dependencies - run: yarn + run: yarn install --frozen-lockfile env: SKIP_PREPARE: true @@ -44,8 +50,14 @@ jobs: with: node-version: 12 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + - name: Install Node.js dependencies - run: yarn + run: yarn install --frozen-lockfile env: SKIP_PREPARE: true @@ -68,8 +80,14 @@ jobs: with: node-version: 12 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} + - name: Install Node.js dependencies - run: yarn + run: yarn install --frozen-lockfile env: SKIP_PREPARE: true