From 9018d206508965daf95864bf2cd158b3055ed60f Mon Sep 17 00:00:00 2001 From: Paul Bertrand Date: Thu, 18 Jun 2026 11:05:47 +0200 Subject: [PATCH 1/2] ci: cache wp-env and Playwright to speed up e2e --- .github/workflows/tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b87fe31..082c779 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,7 +59,19 @@ jobs: cache: "pnpm" - name: Install pnpm dependencies - run: pnpm install + run: pnpm install --frozen-lockfile + + - name: Cache wp-env + uses: actions/cache@v4 + with: + path: ~/.wp-env + key: ${{ runner.os }}-wp-env-${{ matrix.wp }}-${{ matrix.php }}-${{ hashFiles('.wp-env.json') }} + + - name: Cache Playwright browsers + uses: actions/cache@v4 + with: + path: ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }} - name: Set WordPress and PHP version override run: | From 14e89dd25201da51c9dc6e8bb40b68c2f877bc51 Mon Sep 17 00:00:00 2001 From: Paul Bertrand Date: Thu, 18 Jun 2026 11:08:27 +0200 Subject: [PATCH 2/2] ci: keep e2e caches without frozen lockfile --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 082c779..af2e875 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,7 +59,7 @@ jobs: cache: "pnpm" - name: Install pnpm dependencies - run: pnpm install --frozen-lockfile + run: pnpm install - name: Cache wp-env uses: actions/cache@v4