Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test new build #70

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Conan

pip3 install conan

File renamed without changes.
6 changes: 6 additions & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[requires]
opencascade/7.6.0

[generators]
cmake

21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.