diff --git a/.github/workflows/octocov.yml b/.github/workflows/octocov.yml index c7d9a495..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-{{ 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..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-{{ matrix.node-version }} - - name: Install dependencies run: | pnpm install - pnpm exec playwright install --with-deps - name: Lint run: pnpm lint @@ -56,4 +55,3 @@ jobs: - name: Test packaging run: pnpm pack -