Skip to content

Commit 2d08101

Browse files
committed
ci: switch to ubuntu:24.04 + NodeSource Node.js 20 for MongoDB 8.0 compatibility
MongoDB 8.0 officially supports ubuntu 20.04/22.04/24.04 but not 26.04. Use ubuntu:24.04 with explicit Node.js 20.x via NodeSource to satisfy both MongoDB compatibility requirements and Node.js 20+ requirement.
1 parent 51c1db8 commit 2d08101

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/integrate.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@ jobs:
1313
ci_to_main:
1414
runs-on: ubuntu-latest
1515
container:
16-
image: 'ubuntu:26.04'
16+
image: 'ubuntu:24.04'
1717
steps:
1818
- name: Update apt and install required packages
1919
run: |
2020
apt update --yes
21-
apt install --yes sudo
21+
apt install --yes sudo curl
2222
23-
sudo apt install --yes --no-install-recommends npm
23+
# Install Node.js 20.x via NodeSource (ubuntu:24.04 ships Node 18 by default)
24+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
25+
sudo apt install --yes nodejs
2426
2527
sudo apt install --yes git
2628
2729
# Dependencies required to compile the canvas package from source
2830
sudo apt install --yes --no-install-recommends \
2931
build-essential pkg-config libcairo2-dev libpango1.0-dev \
3032
libjpeg-dev libgif-dev librsvg2-dev
33+
3134
# one time fix to avoid permission problems later on
3235
git config --global --add safe.directory "$GITHUB_WORKSPACE"
3336

0 commit comments

Comments
 (0)