This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
Updated node/electron versions #33
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
name: Run CI | |
on: | |
push: | |
branches-ignore: | |
- develop | |
- release/** | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-2016, macos-latest ] | |
node: [ 18, 20, 21 ] | |
task: [ test ] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Set up node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{matrix.node}} | |
- name: Configure msvs version on Windows | |
if: ${{matrix.os == 'windows-2016'}} | |
run: npm config set msvs_version 2017 | |
- name: Run tests | |
env: | |
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1 | |
run: | | |
echo installing | |
npm install --unsafe-perm | |
echo running tests | |
cd ./test | |
npm install --unsafe-perm | |
npm test | |
npm run test-externalMemTracking |