From 2a68b1579a7cc09153a012198eb4b3c52432b3fe Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 18 Aug 2024 09:19:19 +0200 Subject: [PATCH] [mirotalksfu] - try to add unit test in the workflow, update dep --- .github/workflows/build.yml | 11 +++++++++++ app/src/Server.js | 2 +- package.json | 9 ++++----- public/js/Room.js | 4 ++-- public/js/RoomClient.js | 2 +- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 885e49a8..b3db8547 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.20.4' # LTS + + - name: Install dependencies + run: npm install + + - name: Run unit tests + run: npm test + - name: Set up QEMU uses: docker/setup-qemu-action@v2 diff --git a/app/src/Server.js b/app/src/Server.js index f63ce47c..d5ef5fc6 100644 --- a/app/src/Server.js +++ b/app/src/Server.js @@ -55,7 +55,7 @@ dev dependencies: { * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.5.61 + * @version 1.5.62 * */ diff --git a/package.json b/package.json index 61196e1b..1d4690ff 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "mirotalksfu", - "version": "1.5.61", + "version": "1.5.62", "description": "WebRTC SFU browser-based video calls", "main": "Server.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "mocha tests/*.js", "start": "node app/src/Server.js", "start-dev": "nodemon app/src/Server.js", "debug": "DEBUG='mediasoup*' node app/src/Server.js", @@ -27,8 +27,7 @@ "nms-start": "docker-compose -f rtmpServers/node-media-server/docker-compose.yml up -d", "nms-stop": "docker-compose -f rtmpServers/node-media-server/docker-compose.yml down", "nms-restart": "docker-compose -f rtmpServers/node-media-server/docker-compose.yml down && docker-compose -f rtmpServers/node-media-server/docker-compose.yml up -d", - "nms-logs": "docker logs -f mirotalk-nms", - "unit-tests": "npx mocha tests" + "nms-logs": "docker logs -f mirotalk-nms" }, "repository": { "type": "git", @@ -78,7 +77,7 @@ "mediasoup-client": "3.7.16", "ngrok": "^5.0.0-beta.2", "nodemailer": "^6.9.14", - "openai": "^4.55.7", + "openai": "^4.56.0", "qs": "6.13.0", "socket.io": "4.7.5", "swagger-ui-express": "5.0.1", diff --git a/public/js/Room.js b/public/js/Room.js index 35a1d05d..f699dd39 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.5.61 + * @version 1.5.62 * */ @@ -4444,7 +4444,7 @@ function showAbout() { imageUrl: image.about, customClass: { image: 'img-about' }, position: 'center', - title: 'WebRTC SFU v1.5.61', + title: 'WebRTC SFU v1.5.62', html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 2dcef8ce..a40a1cb3 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -9,7 +9,7 @@ * @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.5.61 + * @version 1.5.62 * */