Skip to content

Commit

Permalink
Upgrade to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
remvee committed Feb 4, 2025
1 parent b231d5f commit d69571f
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-v4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm run test-v4
2 changes: 1 addition & 1 deletion .github/workflows/test-v5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm run test-v5
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:18 AS build-env
FROM node:20 AS build-env
COPY . /app
WORKDIR /app
RUN npm ci --only=production

FROM gcr.io/distroless/nodejs:18
FROM gcr.io/distroless/nodejs20-debian12
COPY --from=build-env /app /app
WORKDIR /app
CMD ["server.js"]
Expand Down
252 changes: 73 additions & 179 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0",
"main": "server.js",
"engines": {
"node": "^18"
"node": "^20"
},
"scripts": {
"mocha": "mocha",
Expand Down

0 comments on commit d69571f

Please sign in to comment.