@@ -50,17 +50,12 @@ jobs:
5050 export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
5151 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5252
53- # The CI code that ran on the previous "latest" Circle machine image used the nvm included on that image
54- # to install what that version of nvm considered to be the LTS version of Node. However the current Node LTS
55- # is now 16 and some of JMUI's dependencies break with Node 14+, so install Node 12 explicitly.
56- #
57- # npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
58- nvm install 12
53+ nvm install 14
5954
6055 cd ui
6156 npm install
6257
63- # node-sass was apparently built for Node 6 and requires this extra step for Node 12 .
58+ # node-sass was apparently built for Node 6 and requires this extra step for Node 14 .
6459 npm rebuild node-sass
6560
6661 npm install -g @angular/cli@1.7.4
7974 # nvm setup commands and Node install reprised
8075 export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
8176 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
82- nvm install 12
77+ nvm install 14
8378 ng lint --type-check
8479 - run :
8580 name : Run UI unit tests
8883 # nvm setup commands and Node install reprised
8984 export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
9085 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
91- nvm install 12
86+ nvm install 14
9287 ng test --single-run -sm=false --browsers=ChromeHeadless
9388 - run :
9489 name : Ensure the UI builds for prod
10095 # nvm setup commands and Node install reprised
10196 export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
10297 [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
103- nvm install 12
98+ nvm install 14
10499 ng build --target=production --environment=dev
105100
106101 backends :
0 commit comments