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
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

services:
postgres:
Expand All @@ -25,7 +25,7 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "0.0.0.0:5432:5432"
- ":::5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

services:
postgres:
Expand All @@ -23,7 +23,7 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "0.0.0.0:5432:5432"
- ":::5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pgrita.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

services:
postgres:
Expand All @@ -18,7 +18,7 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "0.0.0.0:5432:5432"
- ":::5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/production-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [24.x]

services:
postgres:
Expand All @@ -18,7 +18,9 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "0.0.0.0:5432:5432"
- ":::5432:5432"
# docker bridge gateway
- "172.17.0.1:5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16
- name: Use Node.js 24
uses: actions/setup-node@v1
with:
node-version: "16"
node-version: "24"
- name: Start Postgres 14
run: |
sc config postgresql-x64-14 start=auto
Expand Down
6 changes: 3 additions & 3 deletions production.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG TARGET="server"
################################################################################
# Build stage 1 - `yarn build`

FROM node:16-alpine as builder
FROM node:24-alpine as builder
# Import our shared args
ARG NODE_ENV
ARG ROOT_URL
Expand All @@ -30,7 +30,7 @@ RUN yarn run build
################################################################################
# Build stage 2 - COPY the relevant things (multiple steps)

FROM node:16-alpine as clean
FROM node:24-alpine as clean
# Import our shared args
ARG NODE_ENV
ARG ROOT_URL
Expand Down Expand Up @@ -67,7 +67,7 @@ RUN rm -Rf /app/node_modules /app/@app/*/node_modules
################################################################################
# Build stage FINAL - COPY everything, once, and then do a clean `yarn install`

FROM node:16-alpine
FROM node:24-alpine

EXPOSE $PORT
WORKDIR /app/
Expand Down
4 changes: 2 additions & 2 deletions scripts/_setup_utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (parseInt(process.version.split(".")[0], 10) < 10) {
throw new Error("This project requires Node.js >= 10.0.0");
if (parseInt(process.version.split(".")[0], 24) < 24) {
throw new Error("This project requires Node.js >= 24.0.0");
}

const fsp = require("fs").promises;
Expand Down
1 change: 1 addition & 0 deletions scripts/lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const runSync = (cmd, args, options = {}) => {
const result = spawnSync(cmd, args, {
stdio: ["inherit", "inherit", "inherit"],
windowsHide: true,
shell: process.platform === "win32",
...options,
env: {
...process.env,
Expand Down