Skip to content

Commit

Permalink
Merge pull request echamudi#13 from rwv/master
Browse files Browse the repository at this point in the history
Add GitHub Actions CI test
  • Loading branch information
echamudi authored Apr 2, 2021
2 parents fe06df9 + e4ee24f commit 4990915
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
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

0 comments on commit 4990915

Please sign in to comment.