Is your feature request related to a problem? Please describe.
The build image doesn't seem to come with browser binaries, which could be used by Playwright for testing.
They need to be explicitly installed, however their target location .cache/ms-playwright is not cached by Netlify and the dependencies are re-downloaded in every build.
Describe the solution you'd like
Playwright dependencies to be cached by default.
Describe alternatives you've considered
I've tried third party netlify-plugin-cache to cache it, but according to support Netlify has plugin issues with current Node 18 version.
Additional context
8:05:26 PM: > npx playwright install chromium
8:05:27 PM: Downloading Chromium 104.0.5112.20 (playwright build v1012)...
8:05:29 PM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 132.8 Mb
8:05:32 PM: Chromium 104.0.5112.20 (playwright build v1012) downloaded to /opt/buildhome/.cache/ms-playwright/chromium-1012
8:05:32 PM: Downloading FFMPEG playwright build v1007...
8:05:33 PM: |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.6 Mb
8:05:33 PM: FFMPEG playwright build v1007 downloaded to /opt/buildhome/.cache/ms-playwright/ffmpeg-1007
Can you submit a pull request?
No, fuzzy on nixes scripting, sorry. :)
Is your feature request related to a problem? Please describe.
The build image doesn't seem to come with browser binaries, which could be used by Playwright for testing.
They need to be explicitly installed, however their target location
.cache/ms-playwrightis not cached by Netlify and the dependencies are re-downloaded in every build.Describe the solution you'd like
Playwright dependencies to be cached by default.
Describe alternatives you've considered
I've tried third party
netlify-plugin-cacheto cache it, but according to support Netlify has plugin issues with current Node 18 version.Additional context
Can you submit a pull request?
No, fuzzy on nixes scripting, sorry. :)