snapshot of https://github.com/marmelab/atomic-crm.git (main, 2026-09-18; blobs > 131072B omitted)
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
This commit is contained in:
22
.devcontainer/playwright/README.md
Normal file
22
.devcontainer/playwright/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Playwright integration
|
||||
|
||||
Installs Playwright system dependencies (via the `playwright-deps` feature) and
|
||||
persists downloaded browsers in a named volume across container rebuilds.
|
||||
|
||||
## Cache folder
|
||||
|
||||
The browser cache lives at `PLAYWRIGHT_BROWSERS_PATH` (default
|
||||
`/mount/.ms-playwright`). This single env var is the source of truth: the
|
||||
volume mount target (`${containerEnv:PLAYWRIGHT_BROWSERS_PATH}`) and the
|
||||
`install.sh` setup both read it.
|
||||
|
||||
The dev container features spec does not allow a feature `option` to drive
|
||||
`containerEnv`/`mounts`, so to change the folder, override the env var in your
|
||||
`devcontainer.json` — the volume mount follows automatically:
|
||||
|
||||
```jsonc
|
||||
{
|
||||
"features": { "./playwright": {} },
|
||||
"containerEnv": { "PLAYWRIGHT_BROWSERS_PATH": "/custom/path" }
|
||||
}
|
||||
```
|
||||
22
.devcontainer/playwright/devcontainer-feature.json
Normal file
22
.devcontainer/playwright/devcontainer-feature.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": "playwright",
|
||||
"version": "1.0.0",
|
||||
"name": "Playwright",
|
||||
"containerEnv": {
|
||||
"PLAYWRIGHT_BROWSERS_PATH": "/mount/.ms-playwright"
|
||||
},
|
||||
"dependsOn": {
|
||||
"ghcr.io/postfinance/devcontainer-features/playwright-deps:1": {
|
||||
"installChromiumDeps": true,
|
||||
"installFirefoxDeps": true,
|
||||
"installWebkitDeps": true
|
||||
}
|
||||
},
|
||||
"mounts": [
|
||||
{
|
||||
"type": "volume",
|
||||
"source": "${devcontainerId}-playwright",
|
||||
"target": "/mount/.ms-playwright"
|
||||
}
|
||||
]
|
||||
}
|
||||
8
.devcontainer/playwright/install.sh
Executable file
8
.devcontainer/playwright/install.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$PLAYWRIGHT_BROWSERS_PATH" ]; then
|
||||
echo "PLAYWRIGHT_BROWSERS_PATH environment variable is not set. Please set it to the desired Playwright folder path."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$PLAYWRIGHT_BROWSERS_PATH" && chown -R $_CONTAINER_USER:$_CONTAINER_USER "$PLAYWRIGHT_BROWSERS_PATH"
|
||||
Reference in New Issue
Block a user