diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..8aaf638 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,68 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build_on_windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - uses: actions/cache@v2 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-store + + - run: pip3 install conan + - run: conan install . + - run: git clone https://github.com/czoido/conan-gyp-generator + - run: cd conan-gyp-generator + - run: conan config install gyp-generator.py -tf generators + - run: cd .. + + - run: npm install -g pnpm@6 + - run: pnpm recursive install + - run: pnpm run build --if-present + - run: pnpm run pretest + - run: pnpm test + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - run: pip3 install conan + - run: conan install . + - run: git clone https://github.com/czoido/conan-gyp-generator + - run: cd conan-gyp-generator + - run: conan config install gyp-generator.py -tf generators + - run: cd .. + + - run: npm install -g pnpm@6 + - uses: actions/cache@v2 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-store + - run: npm install -g pnpm@6 + - run: pnpm recursive install + - run: pnpm run build + - run: pnpm run pretest + - run: pnpm test diff --git a/.travis.yml b/.travis._obsolete.yml similarity index 100% rename from .travis.yml rename to .travis._obsolete.yml diff --git a/Makefile b/Makefile index 3a9a853..8d6c91c 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ clean: node-pre-gyp clean packet: - npm install mocha@7 + npm install mocha@9 npm install assert npm install should npm install node-pre-gyp diff --git a/Notes.md b/Notes.md new file mode 100644 index 0000000..e4ddc1b --- /dev/null +++ b/Notes.md @@ -0,0 +1,4 @@ +## Conan + +pip3 install conan + diff --git a/appveyor.yml b/appveyor_obsolete.yml similarity index 100% rename from appveyor.yml rename to appveyor_obsolete.yml diff --git a/conanfile.txt b/conanfile.txt new file mode 100644 index 0000000..11935e4 --- /dev/null +++ b/conanfile.txt @@ -0,0 +1,6 @@ + [requires] + opencascade/7.6.0 + + [generators] + cmake + diff --git a/package-lock.json b/package-lock.json index cfb48ee..3720567 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1709,20 +1709,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", @@ -5163,13 +5149,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",