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