Skip to content

[Feature] Faster way to install Playwright Browsers and dependencies on GitHub Actions #23388

@dtinth

Description

@dtinth

Problem

The default GitHub Actions workflow generated by Playwright takes quite a lot of time to install Playwright Browsers, and sometimes fail entirely.

  • Example 1: It takes 3.5m to run playwright install --with-deps

    image
  • Example 2: Sometimes azure.archive.ubuntu.com is unstable. In most Node.js applications we never have a need to run apt-get install except when installing Playwright browsers. This has been one of the most common cause of our build failures.

    image

    Since we run our tests on many workers, this Playwright installation failure costed us 10 hours of GitHub Actions billable time.

    image

Request

  • Make the default GitHub Actions pipeline not rely on apt installs. Update: “It's unfortunately not possible”

  • Update the docs to avoid running playwright install directly and use a Docker image to run instead, so people who follow the docs get the best testing experience. (Maybe update the template in create-playwright?)

For people who face the same issue

I am also exploring solutions as I create this issue, which I will update here as I find more workarounds.

For others who face the same issue: I would like to know how other people work around this problem, so maybe we can find the best one faster. If you have worked around this in some way, please share how you do it.

Workarounds summary

(⭐ = I am using this one now.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions