Skip to content

Commit b4738f0

Browse files
authored
Test OpenCV.js (#174)
* Build OpenCV.js * Run tests * Use nigthly docs for JS tests * Custom branch * Update OCV-Nightly-docs-js.yaml
1 parent 9fc69bc commit b4738f0

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/OCV-Nightly-docs-js.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ jobs:
4848
timeout-minutes: 60
4949
run: |
5050
cd $HOME/build
51-
python ../opencv/platforms/js/build_js.py js
51+
emcmake python ../opencv/platforms/js/build_js.py js --build_test
52+
- name: Run js tests
53+
timeout-minutes: 60
54+
if: ${{ always() && matrix.branch == '4.x' }}
55+
run: |
56+
cd $HOME/build/js/bin
57+
npm install
58+
node tests.js
5259
- name: Configure OpenCV doxygen
5360
timeout-minutes: 60
5461
run: |
@@ -72,4 +79,4 @@ jobs:
7279
uses: actions/upload-artifact@v3
7380
with:
7481
name: OpenCVDocDoxygen${{ matrix.branch }}
75-
path: /home/ci/build/release/doc_doxygen.zip
82+
path: /home/ci/build/release/doc_doxygen.zip

0 commit comments

Comments
 (0)