Skip to content

Commit 246785e

Browse files
authored
ISSUE-1616: Upgrade to node 16 (#1622)
1 parent 0c02a92 commit 246785e

File tree

8 files changed

+9787
-94
lines changed

8 files changed

+9787
-94
lines changed

.github/workflows/tests.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
name: Run tests
1818

1919
strategy:
20+
fail-fast: false
2021
matrix:
2122
node_version:
22-
- 12
2323
- 14
24+
- 16
2425

2526
runs-on: ubuntu-latest
2627

@@ -33,8 +34,13 @@ jobs:
3334
with:
3435
node-version: ${{matrix.node_version}}
3536

37+
# See https://github.com/npm/cli/issues/2610
38+
- name: Workaround for Node 14
39+
if: matrix.node_version == '14'
40+
run: sed -i 's/git+ssh/git+https/g' package-lock.json
41+
3642
- name: Install
37-
run: npm install
43+
run: npm ci
3844

3945
- name: Test
4046
run: npm test
@@ -78,10 +84,10 @@ jobs:
7884
- name: Setup
7985
uses: actions/[email protected]
8086
with:
81-
node-version: 12
87+
node-version: 16
8288

8389
- name: Install
84-
run: npm install --ignore-scripts
90+
run: npm ci --ignore-scripts
8591

8692
- name: Run ESLint
8793
run: npm run lint

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12
1+
16.15.1

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN chown dr4ftuser -R .
1515
USER dr4ftuser
1616

1717
# Install the dependencies
18-
RUN npm install
18+
RUN npm ci
1919

2020
# Publish the port 1337
2121
EXPOSE 1337

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ It supports all their features, and many more.
6464

6565
### Native
6666

67-
1) Install [Node.js](https://nodejs.org/en/download/) >= 12.0.0
67+
1) Install [Node.js](https://nodejs.org/en/download/) >= 16.0.0. Alternatively, install [nvm](https://github.com/nvm-sh/nvm) and then run `nvm use` in this repo, which will install the correct Node version for this repo as defined in the `.nvmrc` file.
6868
2) Run<br>
69-
`$ npm install`<br>
69+
`$ npm ci`<br>
7070
`$ npm run build`<br>
7171
`$ npm start`
7272
3) Visit [http://localhost:1337](http://localhost:1337)
@@ -131,7 +131,7 @@ Breakpoints for the frontend should be set in your browser console.
131131

132132
Be a part of this project! You can run the test using the following.
133133

134-
1. Install dependencies from package.json by running `npm install`
134+
1. Install dependencies from package.json by running `npm ci`
135135
2. Run the test via `npm test`
136136
3. Make some fun new modules!
137137

config/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const joi = require("@hapi/joi");
1+
const joi = require("joi");
22

33
const envVarsSchema = joi.object({
44
PORT: joi.number()

config/logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const joi = require("@hapi/joi");
1+
const joi = require("joi");
22

33
const envVarsSchema = joi.object({
44
LOGGER_LEVEL: joi.string()

0 commit comments

Comments
 (0)