File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,9 @@ functions:
329329 script: |
330330 set -e
331331 {
332- # Fetch Node.js version from VS Code's .nvmrc to ensure we test with the same version
333- NODE_JS_VERSION=$(curl -fsSL https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/.nvmrc | tr -d '[:space:]')
334- echo "Using Node.js version from VS Code .nvmrc : ${NODE_JS_VERSION}"
332+ # Fetch Node.js version from VS Code's .nvmrc, default to 22.20.0 if unavailable
333+ NODE_JS_VERSION=$(curl -fsSL https://raw.githubusercontent.com/microsoft/vscode/refs/heads/main/.nvmrc | tr -d '[:space:]' || echo "22.20.0" )
334+ echo "Using Node.js version for VS Code extension tests : ${NODE_JS_VERSION}"
335335 (cd scripts/docker && docker build --build-arg NODE_JS_VERSION="${NODE_JS_VERSION}" -t ubuntu24.04-xvfb -f ubuntu24.04-xvfb.Dockerfile .)
336336 docker run \
337337 --rm -v $PWD:/tmp/build ubuntu24.04-xvfb \
Original file line number Diff line number Diff line change 11FROM ubuntu:24.04
22
33ARG NODE_JS_VERSION
4+
5+ RUN if [ -z "$NODE_JS_VERSION" ]; then echo "Error: NODE_JS_VERSION is not defined" ; exit 1; fi
6+
47ENV NODE_JS_VERSION=${NODE_JS_VERSION}
58ENV DEBIAN_FRONTEND=noninteractive
69RUN apt-get update
You can’t perform that action at this time.
0 commit comments