Skip to content

Commit ce9fb77

Browse files
committedJun 27, 2023
#2013 Made minimal changes to locked package versions to support Node 18. Updated Node version requirements in relevant package.json files, fixed new undefined error message in tests.
1 parent 3df786b commit ce9fb77

File tree

9 files changed

+277
-284
lines changed

9 files changed

+277
-284
lines changed
 

‎.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [14.x]
8+
node-version: [18.x]
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v2
@@ -19,10 +19,10 @@ jobs:
1919
# should help to speed up yarn install and be safe
2020
# across changes to the repo and platforms
2121
- name: Cache Yarn Deps
22-
uses: c-hive/gha-yarn-cache@v1
22+
uses: c-hive/gha-yarn-cache@v1
2323

2424
- run: echo "github.ref = ${{ github.ref }}"
25-
25+
2626
# frozen lockfile should make the cache more effective
2727
# and our tests more predictable
2828
- run: yarn install --frozen-lockfile
@@ -35,7 +35,7 @@ jobs:
3535
# will fail the PRs that need prettier run on them
3636
- name: Does Prettier Need to Be Run
3737
run: git --no-pager diff --exit-code -- .
38-
38+
3939
- run: yarn test:ci
4040

4141
build_docker_images:
@@ -83,7 +83,7 @@ jobs:
8383
- name: NPM - Test, Build, Deploy
8484
uses: actions/setup-node@v1
8585
with:
86-
node-version: 14
86+
node-version: 18
8787
registry-url: https://registry.npmjs.org/
8888

8989
- name: Cache Yarn Deps

‎docker/dockerfiles/obojobo-node-debian.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# =====================================================================================================
22
# Base stage used for build and final stages
33
# =====================================================================================================
4-
FROM node:14.16.0-alpine AS base_stage
4+
FROM node:18.16.0-alpine AS base_stage
55

66
# ======== PUT NEW NODE BIN DIR IN PATH
77
RUN npm config set prefix '/home/node/.npm-global'

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@
103103
],
104104
"engines": {
105105
"yarn": "^1.15.2",
106-
"node": "^14.16.0"
106+
"node": "^18.16.0"
107107
}
108108
}

‎packages/app/obojobo-document-engine/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "AGPL-3.0-only",
55
"description": "",
66
"engines": {
7-
"node": "^14.16.0"
7+
"node": "^18.16.0"
88
},
99
"main": "index.js",
1010
"scripts": {

‎packages/app/obojobo-express/__tests__/routes/api/visits.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ describe('api visits route', () => {
368368
expect(response.body.value).toHaveProperty('type', 'reject')
369369
expect(response.body.value).toHaveProperty(
370370
'message',
371-
"Cannot read property 'lis_outcome_service_url' of undefined"
371+
"Cannot read properties of undefined (reading 'lis_outcome_service_url')"
372372
)
373373
})
374374
})

‎packages/app/obojobo-express/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"precommit": "lint-staged"
2929
},
3030
"engines": {
31-
"node": "^14.16.0"
31+
"node": "^18.16.0"
3232
},
3333
"lint-staged": {
3434
"**/*.scss": [

‎packages/app/obojobo-module-selector/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"precommit": "lint-staged"
1616
},
1717
"engines": {
18-
"node": "^14.16.0"
18+
"node": "^18.16.0"
1919
},
2020
"lint-staged": {
2121
"**/*.scss": [

‎packages/app/obojobo-repository/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"precommit": "lint-staged"
1616
},
1717
"engines": {
18-
"node": "^14.16.0"
18+
"node": "^18.16.0"
1919
},
2020
"lint-staged": {
2121
"**/*.scss": [

‎yarn.lock

+265-272
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.