From 19183678a36c1cfbb87e4d25b4b3659729a264ab Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Thu, 6 Apr 2023 18:52:13 -0400 Subject: [PATCH] build(playwright.yml): add caching for API and Client dependencies Add caching for API and Client dependencies to speed up the build process. --- .github/workflows/playwright.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 14e500efd8..d4acafe368 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -14,11 +14,28 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - + cache: 'npm' + + - name: Cache API dependencies + uses: actions/cache@v2 + with: + path: ./api/node_modules + key: api-${{ runner.os }}-node-${{ hashFiles('./api/package-lock.json') }} + restore-keys: | + api-${{ runner.os }}-node- + - name: Install API dependencies working-directory: ./api run: npm ci + - name: Cache Client dependencies + uses: actions/cache@v2 + with: + path: ./client/node_modules + key: client-${{ runner.os }}-node-${{ hashFiles('./client/package-lock.json') }} + restore-keys: | + client-${{ runner.os }}-node- + - name: Install Client dependencies working-directory: ./client run: npm ci