Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Verify webpack example builds with current client code in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
timoxley committed Mar 31, 2020
1 parent 83d7fd2 commit b697a81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: test-unit
run: npm run test-unit

- name: test-build
run: npm run build && npm run build-example

- name: test-integration
run: |
sudo service mysql stop
Expand All @@ -46,5 +49,3 @@ jobs:
${GITHUB_WORKSPACE}/streamr-docker-dev/streamr-docker-dev/bin.sh start --wait
npm run test-integration
- name: test-build
run: npm run build
3 changes: 2 additions & 1 deletion examples/webpack/package.json
Expand Up @@ -4,7 +4,8 @@
"description": "Example of how streamr-client can be included in webpack projects",
"scripts": {
"build": "NODE_ENV=production webpack --mode=production --progress",
"dev": "webpack --progress --colors --watch"
"dev": "webpack --progress --colors --watch",
"build-with-parent": "npm ci && cp -Rpfv ../../dist ./node_modules/streamr-client/ && rm node_modules/streamr-client/package.json; cp ../../package.json ./node_modules/streamr-client/package.json && npm run build"
},
"engines": {
"node": ">= 8"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -19,7 +19,8 @@
"test": "jest --detectOpenHandles",
"test-unit": "jest test/unit --detectOpenHandles",
"coverage": "jest --coverage",
"test-integration": "jest test/integration --detectOpenHandles"
"test-integration": "jest test/integration --detectOpenHandles",
"build-example": "cd examples/webpack && npm run build-with-parent"
},
"engines": {
"node": ">= 10"
Expand Down

0 comments on commit b697a81

Please sign in to comment.