diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0e8e2a7..a5c18e0 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -18,15 +18,13 @@ jobs: - uses: actions/setup-node@v4 with: node-version-file: .nvmrc - - name: Cache node modules - uses: actions/cache@v2 + - name: Cache restore + uses: actions/cache/restore@v2 + id: cache-restore with: - path: e2e/node_modules - key: "${{ runner.os }}-node-${{ hashFiles('e2e/package-lock.json') }}" - - name: Cache browser - uses: actions/cache@v2 - with: - path: e2e/$PLAYWRIGHT_BROWSERS_PATH + path: | + e2e/node_modules + e2e/$PLAYWRIGHT_BROWSERS_PATH key: "${{ runner.os }}-node-${{ hashFiles('e2e/package-lock.json') }}" - name: Install dependencies run: npm ci @@ -42,3 +40,10 @@ jobs: e2e/playwright-report/ e2e/test-results/ retention-days: 10 + - name: Cache save + uses: actions/cache/save@v2 + with: + path: | + e2e/node_modules + e2e/$PLAYWRIGHT_BROWSERS_PATH + key: ${{ steps.cache-restore.outputs.cache-primary-key }}