From f2a61382b6c6e0bd8fdfd3a1d203d0489c3c83aa Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Fri, 15 Jan 2021 23:06:24 +0530 Subject: [PATCH] ci: cache deps --- .github/workflows/test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f1b76aa52a..1249f20532f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,16 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node }} + - name: Cache dependencies + id: cache + uses: actions/cache@v2 + with: + path: | + node_modules + */*/node_modules + key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', './yarn.lock') }} - name: Install packages - run: yarn --no-progress --non-interactive --no-lockfile + if: steps.cache.outputs.cache-hit != 'true' + run: yarn --frozen-lockfile --prefer-offline - name: Run integration tests run: yarn test:integration