Skip to content

Commit

Permalink
chore: bump min supported node to v18; move tests and CI to node v20 (#…
Browse files Browse the repository at this point in the history
…207)

Node.js v18 is now the lowest active version.
  • Loading branch information
trentm authored Oct 24, 2023
1 parent 6ea2de3 commit fc3b1c0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bump-opbeans-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 20
cache: 'npm'
- uses: elastic/apm-pipeline-library/.github/actions/updatecli@current
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '20'
- run: npm install
- run: npm run lint
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine

WORKDIR /app
COPY . /app
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PORT ?= 3000
IMAGE ?= opbeans/opbeans-node
VERSION ?= latest
LTS_ALPINE ?= 14-alpine
LTS_ALPINE ?= 20-alpine

.DEFAULT_GOAL := help

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-elastic-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ services:
condition: service_healthy

loadPgData:
image: node:14-bullseye
image: node:20-bullseye
environment:
- PGHOST=postgres
- PGUSER=postgres
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ services:
condition: service_healthy

loadPgData:
image: node:14-bullseye
image: node:20-bullseye
environment:
- PGHOST=postgres
- PGUSER=postgres
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"standard": "^17.1.0"
},
"engines": {
"node": ">=14"
"node": ">=18"
},
"scripts": {
"db-setup": "./db/setup.sh",
Expand Down

0 comments on commit fc3b1c0

Please sign in to comment.