diff --git a/.docker/sdkjs.bake.Dockerfile b/.docker/sdkjs.bake.Dockerfile index 182739a7ca..9554c52e33 100644 --- a/.docker/sdkjs.bake.Dockerfile +++ b/.docker/sdkjs.bake.Dockerfile @@ -17,7 +17,7 @@ ARG BUILD_ROOT FROM ubuntu:26.04 AS web-base RUN apt-get update && \ apt-get install -y ca-certificates curl gnupg wget zip brotli bzip2 && \ - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ + curl -fsSL https://deb.nodesource.com/setup_26.x | bash - && \ apt-get install -y nodejs && \ npm install -g @yao-pkg/pkg && \ rm -rf /var/lib/apt/lists/* diff --git a/.github/workflows/check-build.yml b/.github/workflows/check-build.yml index 2864391b47..19111c81e9 100644 --- a/.github/workflows/check-build.yml +++ b/.github/workflows/check-build.yml @@ -18,6 +18,15 @@ on: - develop - 'release/**' - 'hotfix/**' + +env: + # puppeteer 24's postinstall unzips Chrome with extract-zip, which stops + # halfway on Node 26. Skip it and install Chrome with @puppeteer/browsers 3 + # (see "npm install node-qunit-puppeteer" below), per job: self-hosted + # runners keep ~/.cache/puppeteer between jobs. + PUPPETEER_SKIP_DOWNLOAD: "true" + PUPPETEER_CACHE_DIR: ${{ github.workspace }}/.cache/puppeteer + jobs: code-style: runs-on: ubuntu-latest @@ -64,10 +73,10 @@ jobs: path: sdkjs-forms ref: master - - name: Use Node.js 20 + - name: Use Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 with: - node-version: 20 + node-version: 26 cache: npm cache-dependency-path: sdkjs/build/npm-shrinkwrap.json @@ -82,6 +91,8 @@ jobs: SDK_ADDONS: ../../sdkjs-forms run: | npm install node-qunit-puppeteer + # Install the Chrome puppeteer pins (its own download is skipped, see env). + npx -y @puppeteer/browsers@3.2.6 install --path "$PUPPETEER_CACHE_DIR" "chrome@$(node -p "require('puppeteer-core/internal/revisions.js').PUPPETEER_REVISIONS.chrome")" npm ci --prefix build npm run --prefix build develop @@ -113,10 +124,10 @@ jobs: path: sdkjs-forms ref: master - - name: Use Node.js 20 + - name: Use Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 with: - node-version: 20 + node-version: 26 cache: npm cache-dependency-path: sdkjs/build/npm-shrinkwrap.json @@ -163,6 +174,8 @@ jobs: sudo apt-get install -y libatk1.0-0 libcups2 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libnss3 libgbm1 libasound2t64 cd sdkjs npm install node-qunit-puppeteer + # Install the Chrome puppeteer pins (its own download is skipped, see env). + npx -y @puppeteer/browsers@3.2.6 install --path "$PUPPETEER_CACHE_DIR" "chrome@$(node -p "require('puppeteer-core/internal/revisions.js').PUPPETEER_REVISIONS.chrome")" # The "unit-tests" job above runs the QUnit suite against raw source files # (COMPILED unset) — it never touches the webpack output, so a regression in the diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 185354e172..791d32d964 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -70,10 +70,10 @@ jobs: path: documentserver ref: main - - name: Use Node.js 20 + - name: Use Node.js 26 uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 with: - node-version: 20 + node-version: 26 - name: Build sdkjs working-directory: sdkjs