Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docker/sdkjs.bake.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading