From 3b4d591014c6ecd795012ee42bc80ba868ca3191 Mon Sep 17 00:00:00 2001 From: Elliot Braem <16282460+elliotBraem@users.noreply.github.com> Date: Mon, 5 Aug 2024 15:43:14 -0500 Subject: [PATCH] add caching --- .github/workflows/continuous-integration.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c04b81a..6546713 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -24,15 +24,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/cache@v3 + id: playwright-cache with: - node-version: 20 - cache: "npm" + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies - run: | - npm add bos-workspace - npm playwright install-deps - npm playwright install + run: npx playwright install --with-deps chromium + if: steps.playwright-cache.outputs.cache-hit != 'true' - name: Run tests - run: | - npm playwright test + run: npx playwright test