Skip to content

build: use node 22 to build osmo-x API #424

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 10 commits into
base: main
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
8 changes: 4 additions & 4 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:
jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '22'

- name: Change to backend directory and install dependencies
run: cd apps/api && npm install
Expand All @@ -27,15 +27,15 @@ jobs:
build:
needs: lint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: '22'

- name: Change to backend directory and install dependencies
run: cd apps/api && npm install
Expand Down
4 changes: 2 additions & 2 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use Node.js 20 as the base image
FROM node:20
# Use Node.js 22 as the base image
FROM node:22

# Set the working directory inside the container
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion apps/api/docs/api-test-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document provides instructions on how to run the API test cases using Postm
Before running the test cases, make sure you have the following prerequisites installed:

- [Postman](https://www.postman.com/downloads/)
- [Node.js](https://nodejs.org/) (v20.x or higher)
- [Node.js](https://nodejs.org/) (v22.x or higher)

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion apps/api/docs/development-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document outlines the steps required to set up your OsmoX for development.
Before setting up OsmoX for development, ensure you have the following prerequisites with the specified versions:

- **NVM (Node Version Manager):** Use NVM to manage Node.js versions.
- **Node.js** Node.js v20.x or higher. Can be installed via `nvm` using `nvm install 20` and used with `nvm use 20`.
- **Node.js** Node.js v22.x or higher. Can be installed via `nvm` using `nvm install 22` and used with `nvm use 22`.
- **Git:** Git v2.x or higher.
- **PostgreSQL:** PostgreSQL v16.x or higher.
- **Redis:** Redis v6.x or higher
Expand Down
2 changes: 1 addition & 1 deletion apps/api/docs/production-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document outlines the steps required to set up OsmoX for production. Follow
Before setting up OsmoX for production, ensure you have the following prerequisites with the specified versions:

- **NVM (Node Version Manager):** Use NVM to manage Node.js versions.
- **Node.js** Node.js v20.x or higher.
- **Node.js** Node.js v22.x or higher.
- **Git:** Git v2.x or higher.
- **PostgreSQL:** PostgreSQL v16.x or higher.
- **Redis:** Redis v6.x or higher
Expand Down
Loading
Loading