From c5ef9e534a29a0b8a780bb079efc91437e426aad Mon Sep 17 00:00:00 2001 From: Yui Kitsu Date: Mon, 23 Feb 2026 21:30:00 +0900 Subject: [PATCH 1/3] fix(ci): avoid apt-heavy Playwright install in CI (refs: https://github.com/kitsuyui/rendering-proxy/pull/1557) --- .github/workflows/octocov.yml | 12 +++--------- .github/workflows/test.yml | 13 +++---------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/octocov.yml b/.github/workflows/octocov.yml index c7d9a495..29e8390a 100644 --- a/.github/workflows/octocov.yml +++ b/.github/workflows/octocov.yml @@ -13,6 +13,9 @@ permissions: jobs: octocov: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.58.2-noble + options: --user 1001 strategy: fail-fast: false matrix: @@ -30,18 +33,9 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: cache playwright - uses: actions/cache@v5 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: cache-playwright-{{ matrix.node-version }} - - name: Install dependencies run: | pnpm install - pnpm exec playwright install --with-deps - name: Lint run: pnpm lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2c891f6..056a3351 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,9 @@ on: jobs: test: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.58.2-noble + options: --user 1001 continue-on-error: true strategy: @@ -29,18 +32,9 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: cache playwright - uses: actions/cache@v5 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: cache-playwright-{{ matrix.node-version }} - - name: Install dependencies run: | pnpm install - pnpm exec playwright install --with-deps - name: Lint run: pnpm lint @@ -56,4 +50,3 @@ jobs: - name: Test packaging run: pnpm pack - From 93d76cca7dcbb7e6fa5835bd3b8e5e98c8a11cba Mon Sep 17 00:00:00 2001 From: Yui Kitsu Date: Mon, 23 Feb 2026 21:40:21 +0900 Subject: [PATCH 2/3] fix(ci): keep docker-based tests while removing apt-heavy Playwright deps (refs: https://github.com/kitsuyui/rendering-proxy/pull/1565) --- .github/workflows/octocov.yml | 12 +++++++++--- .github/workflows/test.yml | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/octocov.yml b/.github/workflows/octocov.yml index 29e8390a..3b0358eb 100644 --- a/.github/workflows/octocov.yml +++ b/.github/workflows/octocov.yml @@ -13,9 +13,6 @@ permissions: jobs: octocov: runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.58.2-noble - options: --user 1001 strategy: fail-fast: false matrix: @@ -33,9 +30,18 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml + - name: cache playwright + uses: actions/cache@v5 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: cache-playwright-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: Install dependencies run: | pnpm install + pnpm exec playwright install - name: Lint run: pnpm lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 056a3351..304aa8c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,9 +10,6 @@ on: jobs: test: runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.58.2-noble - options: --user 1001 continue-on-error: true strategy: @@ -32,9 +29,18 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml + - name: cache playwright + uses: actions/cache@v5 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: cache-playwright-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('pnpm-lock.yaml') }} + - name: Install dependencies run: | pnpm install + pnpm exec playwright install - name: Lint run: pnpm lint From d4716190e22287094ab920504f6ae78880df6411 Mon Sep 17 00:00:00 2001 From: Yui Kitsu Date: Mon, 23 Feb 2026 21:42:41 +0900 Subject: [PATCH 3/3] fix(ci): use Playwright container with httpbin service for stable tests (refs: https://github.com/kitsuyui/rendering-proxy/pull/1565) --- .github/workflows/octocov.yml | 17 ++++++++--------- .github/workflows/test.yml | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/octocov.yml b/.github/workflows/octocov.yml index 3b0358eb..3f338ad9 100644 --- a/.github/workflows/octocov.yml +++ b/.github/workflows/octocov.yml @@ -13,6 +13,14 @@ permissions: jobs: octocov: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.58.2-noble + options: --user 1001 + services: + httpbin: + image: kennethreitz/httpbin + env: + RUNNING_IN_DOCKER: "1" strategy: fail-fast: false matrix: @@ -30,18 +38,9 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: cache playwright - uses: actions/cache@v5 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: cache-playwright-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('pnpm-lock.yaml') }} - - name: Install dependencies run: | pnpm install - pnpm exec playwright install - name: Lint run: pnpm lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 304aa8c7..a53c91fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,14 @@ on: jobs: test: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.58.2-noble + options: --user 1001 + services: + httpbin: + image: kennethreitz/httpbin + env: + RUNNING_IN_DOCKER: "1" continue-on-error: true strategy: @@ -29,18 +37,9 @@ jobs: cache: pnpm cache-dependency-path: pnpm-lock.yaml - - name: cache playwright - uses: actions/cache@v5 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: cache-playwright-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('pnpm-lock.yaml') }} - - name: Install dependencies run: | pnpm install - pnpm exec playwright install - name: Lint run: pnpm lint