From f5f71307f9947958d82a69ed9132f612b1081175 Mon Sep 17 00:00:00 2001 From: Javier Bullrich Date: Tue, 30 Apr 2024 16:22:07 +0200 Subject: [PATCH] added cache --- .github/workflows/test.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a552cd0d..dff72046 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,9 +16,21 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - run: yarn install --frozen-lockfile + - name: Cache node modules + id: cache-npm + uses: actions/cache@v4.0.2 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}- + - name: Install deps in root + run: yarn install --frozen-lockfile - run: yarn generate:papi:e2e - - run: yarn install --frozen-lockfile + - name: Install deps in client + run: yarn install --frozen-lockfile working-directory: client - run: yarn typecheck - run: yarn format