forked from echamudi/opencv-wasm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request echamudi#13 from rwv/master
Add GitHub Actions CI test
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Test | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node v14 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- run: npm install | ||
name: Install Node dependencies | ||
|
||
- run: (cd ./utils && sh ./build.sh) | ||
name: Build opencv-wasm | ||
|
||
- run: (cd utils && node generateCvProps.js) | ||
name: generateCvProps | ||
|
||
- run: (cd ./build_wasm_test/bin && npm install) | ||
name: Install Node dependencies for test provided by OpenCV | ||
|
||
- run: (cd ./build_wasm_test/bin && node tests.js) | ||
name: Run test provided by OpenCV | ||
|
||
- run: npm test | ||
name: Run this's repo's test | ||
|