Skip to content

update node engine requirements #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
16 changes: 11 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,26 @@ permissions:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: install mongodb tools
run: sudo apt-get install -y mongodb-org-shell
- name: Install MongoDB Shell
run: |
sudo apt-get update
sudo apt-get install -y gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg --dearmor -o /usr/share/keyrings/mongodb-server-8.0.gpg
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
sudo apt-get update
sudo apt-get install -y mongodb-mongosh
- name: install dependencies
run: npm ci
- name: run unit tests
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- Base Node ----
FROM node:14-stretch AS base
FROM node:24-bullseye AS base

# ---- Dependencies ----
FROM base AS dependencies
Expand All @@ -16,7 +16,7 @@ WORKDIR /app
COPY app ./app

## ---- UI ----
FROM base AS ui
FROM node:14.1 AS ui
WORKDIR /app
RUN git config --global url."https://github.com/".insteadOf git://github.com/ \
&& git clone --depth=1 https://github.com/OpenTMI/opentmi-default-gui.git . \
Expand All @@ -25,7 +25,7 @@ RUN git config --global url."https://github.com/".insteadOf git://github.com/ \
&& rm -r node_modules

# --- Release with Alpine ----
FROM node:14-alpine AS release
FROM node:24-alpine AS release
WORKDIR /app
RUN apk add --no-cache git
# copy package.json
Expand Down
Loading
Loading