mirror of
https://github.com/mempool/mempool.git
synced 2026-08-13 12:33:11 +02:00
Bump node to v24.13
This commit is contained in:
parent
f8c999b51f
commit
89081171d3
9 changed files with 21 additions and 20 deletions
2
.github/workflows/backend-integration.yml
vendored
2
.github/workflows/backend-integration.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ["22.14.0"]
|
node: ["24.13.0"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
|
||||||
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ["22.14.0"]
|
node: ["24.13.0"]
|
||||||
flavor: ["dev", "prod"]
|
flavor: ["dev", "prod"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -96,7 +96,7 @@ jobs:
|
||||||
name: "Cache assets for builds"
|
name: "Cache assets for builds"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ["22.14.0"]
|
node: ["24.13.0"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
@ -202,7 +202,7 @@ jobs:
|
||||||
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
if: "(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ops') && !contains(github.head_ref, 'ops/')) || github.event_name == 'push'"
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: ["22.14.0"]
|
node: ["24.13.0"]
|
||||||
flavor: ["dev", "prod"]
|
flavor: ["dev", "prod"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -304,6 +304,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
node: ["24.13.0"]
|
||||||
module: ["mempool", "liquid", "testnet4"]
|
module: ["mempool", "liquid", "testnet4"]
|
||||||
|
|
||||||
name: E2E tests for ${{ matrix.module }}
|
name: E2E tests for ${{ matrix.module }}
|
||||||
|
|
@ -316,7 +317,7 @@ jobs:
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: ${{ matrix.node }}
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: ${{ matrix.module }}/frontend/package-lock.json
|
cache-dependency-path: ${{ matrix.module }}/frontend/package-lock.json
|
||||||
|
|
||||||
|
|
@ -324,9 +325,9 @@ jobs:
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.module }}/frontend/node_modules
|
path: ${{ matrix.module }}/frontend/node_modules
|
||||||
key: ${{ runner.os }}-e2e-${{ matrix.module }}-node-22-${{ hashFiles('${{ matrix.module }}/frontend/package-lock.json') }}
|
key: ${{ runner.os }}-e2e-${{ matrix.module }}-node-${{ matrix.node }}-${{ hashFiles('${{ matrix.module }}/frontend/package-lock.json') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-e2e-${{ matrix.module }}-node-22-
|
${{ runner.os }}-e2e-${{ matrix.module }}-node-${{ matrix.node }}-
|
||||||
${{ runner.os }}-e2e-${{ matrix.module }}-
|
${{ runner.os }}-e2e-${{ matrix.module }}-
|
||||||
|
|
||||||
- name: Restore cached mining pool assets
|
- name: Restore cached mining pool assets
|
||||||
|
|
|
||||||
4
.github/workflows/e2e_parameterized.yml
vendored
4
.github/workflows/e2e_parameterized.yml
vendored
|
|
@ -43,7 +43,7 @@ jobs:
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 22.14.0
|
node-version: 24.13.0
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- name: Install (Prod dependencies only)
|
- name: Install (Prod dependencies only)
|
||||||
|
|
@ -151,7 +151,7 @@ jobs:
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 22.14.0
|
node-version: 24.13.0
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: ${{ matrix.module }}/frontend/package-lock.json
|
cache-dependency-path: ${{ matrix.module }}/frontend/package-lock.json
|
||||||
|
|
||||||
|
|
|
||||||
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
||||||
v22
|
v24.13.0
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ WORKDIR /build
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl ca-certificates && \
|
apt-get install -y curl ca-certificates && \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
|
||||||
apt-get install -y nodejs=22.14.0-1nodesource1 build-essential python3 pkg-config && \
|
apt-get install -y nodejs=24.13.0-1nodesource1 build-essential python3 pkg-config && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
@ -28,8 +28,8 @@ FROM rust:1.84-bookworm AS runtime
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y curl ca-certificates && \
|
apt-get install -y curl ca-certificates && \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
|
||||||
apt-get install -y nodejs=22.14.0-1nodesource1 && \
|
apt-get install -y nodejs=24.13.0-1nodesource1 && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:22.14.0-bookworm-slim AS builder
|
FROM node:24.13-bookworm-slim AS builder
|
||||||
|
|
||||||
ARG commitHash
|
ARG commitHash
|
||||||
ENV DOCKER_COMMIT_HASH=${commitHash}
|
ENV DOCKER_COMMIT_HASH=${commitHash}
|
||||||
|
|
|
||||||
|
|
@ -82,11 +82,11 @@ pkg install -y zsh sudo git screen curl wget neovim rsync nginx openssl openssh-
|
||||||
|
|
||||||
### Node.js + npm
|
### Node.js + npm
|
||||||
|
|
||||||
Build Node.js v22.14.0 and npm v9 from source using `nvm`:
|
Build Node.js v24.13.0 and npm v9 from source using `nvm`:
|
||||||
```
|
```
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | zsh
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | zsh
|
||||||
source $HOME/.zshrc
|
source $HOME/.zshrc
|
||||||
nvm install v22.14.0 --shared-zlib
|
nvm install v24.13.0 --shared-zlib
|
||||||
nvm alias default node
|
nvm alias default node
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1081,8 +1081,8 @@ echo "[*] Installing nvm.sh from GitHub"
|
||||||
osSudo "${MEMPOOL_USER}" sh -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash'
|
osSudo "${MEMPOOL_USER}" sh -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash'
|
||||||
|
|
||||||
echo "[*] Building NodeJS via nvm.sh"
|
echo "[*] Building NodeJS via nvm.sh"
|
||||||
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; CC=gcc CXX=g++ nvm install v22.14.0 --shared-zlib'
|
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; CC=gcc CXX=g++ nvm install v24.13.0 --shared-zlib'
|
||||||
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; nvm alias default 22.14.0'
|
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; nvm alias default 24.13.0'
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Tor installation #
|
# Tor installation #
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
source "$NVM_DIR/nvm.sh"
|
source "$NVM_DIR/nvm.sh"
|
||||||
nvm use v22.14.0
|
nvm use v24.13.0
|
||||||
|
|
||||||
# start all mempool backends that exist
|
# start all mempool backends that exist
|
||||||
for site in mainnet mainnet-lightning testnet testnet-lightning testnet4 signet signet-lightning liquid liquidtestnet;do
|
for site in mainnet mainnet-lightning testnet testnet-lightning testnet4 signet signet-lightning liquid liquidtestnet;do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue