feat: add YAML-first source workspace host deps
This commit is contained in:
@@ -787,12 +787,39 @@ lanes:
|
||||
requiredCommands:
|
||||
- git
|
||||
- node
|
||||
- npm
|
||||
- npx
|
||||
requiredFiles:
|
||||
- AGENTS.md
|
||||
- package.json
|
||||
- package-lock.json
|
||||
- scripts/src/browser-launcher.mjs
|
||||
- scripts/web-live-dom-probe.mjs
|
||||
hostDependencies:
|
||||
checkCommands:
|
||||
- git
|
||||
- node
|
||||
- npm
|
||||
- npx
|
||||
stateDir: /var/lib/unidesk/hwlab-source-workspace
|
||||
install:
|
||||
timeoutSeconds: 300
|
||||
command: |
|
||||
set -eu
|
||||
. /etc/unidesk/proxy.env 2>/dev/null || true
|
||||
export HTTP_PROXY HTTPS_PROXY ALL_PROXY NO_PROXY http_proxy https_proxy all_proxy no_proxy
|
||||
npm_version=11.17.0
|
||||
tmp_dir=$(mktemp -d)
|
||||
trap 'rm -rf "$tmp_dir"' EXIT
|
||||
curl -fsSL --retry 3 --connect-timeout 20 --max-time 300 "https://registry.npmmirror.com/npm/-/npm-${npm_version}.tgz" -o "$tmp_dir/npm.tgz"
|
||||
mkdir -p /usr/local/lib/node_modules
|
||||
rm -rf /usr/local/lib/node_modules/npm
|
||||
tar -xzf "$tmp_dir/npm.tgz" -C "$tmp_dir"
|
||||
mv "$tmp_dir/package" /usr/local/lib/node_modules/npm
|
||||
ln -sfn /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
|
||||
ln -sfn /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx
|
||||
npm --version
|
||||
npx --version
|
||||
install:
|
||||
dependencyCommand: npm install --package-lock=false --ignore-scripts --no-audit --no-fund playwright@1.59.1
|
||||
browserCommand: PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
|
||||
|
||||
Reference in New Issue
Block a user