Skip to content

Commit

Permalink
[tests] Added NODE_OPTIONS=--openssl-legacy-provider to package.json
Browse files Browse the repository at this point in the history
Added this option some command definitions in package.json
to facilitate development and testing.

TODO: Remove when webpack 5 is adopted.
  • Loading branch information
nemesifier committed Nov 15, 2023
1 parent da928c1 commit cd481ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,10 @@ jobs:
run: node browser-test/create-mobile-configuration.js

- name: Build OpenWISP WiFi Login Pages
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn setup
webpack --mode development --progress --config config/webpack.config.js
run: yarn build-dev

- name: Running OpenWISP WiFi Login Pages
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn start &
run: yarn start &

- name: Running OpenWISP Radius
run: cd openwisp-radius && ./tests/manage.py runserver &
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@
"webpack-dev-server": "^4.7.3"
},
"scripts": {
"build": "npm run setup && webpack --mode production --progress --config config/webpack.config.js",
"client": "npm run setup && webpack serve --host 0.0.0.0 --mode development --config config/webpack.config.js",
"coverage": "jest --coverage --testPathIgnorePatterns=/browser-test/",
"build": "export NODE_OPTIONS=--openssl-legacy-provider npm run setup && webpack --mode production --progress --config config/webpack.config.js",
"build-dev": "export NODE_OPTIONS=--openssl-legacy-provider npm run setup && webpack --mode development --progress --config config/webpack.config.js",
"client": "export NODE_OPTIONS=--openssl-legacy-provider npm run setup && webpack serve --host 0.0.0.0 --mode development --config config/webpack.config.js",
"coverage": "jest --coverage --testPathIgnorePatterns=/browser-test/",
"coveralls": "test -f ./coverage/lcov.info && cat ./coverage/lcov.info | coveralls || echo 'no coverage file found'",
"add-org": "node config/add-org.js",
"server": "npm run setup && nodemon server/start.js",
Expand Down

0 comments on commit cd481ec

Please sign in to comment.