-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #222 from Mister-Hope/master"
- Loading branch information
Showing
30 changed files
with
2,853 additions
and
3,409 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,31 @@ | ||
# This workflow will do a clean install of node dependencies, cache/restore them, 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: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x, 14.x, 16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,19 @@ | ||
.idea/ | ||
node_modules/ | ||
build/ | ||
coverage/ | ||
dist/ | ||
tags | ||
build | ||
*.demo | ||
*swp | ||
*.out | ||
*.o | ||
*.d | ||
*.ut | ||
log | ||
main | ||
lib*.a | ||
*_demo | ||
segdict* | ||
tmp | ||
t.* | ||
*.pid | ||
node_modules | ||
npm-debug.log | ||
.idea |
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,90 @@ | ||
language: node_js | ||
|
||
stages: | ||
- test | ||
- name: deploy | ||
if: tag IS present | ||
|
||
jobs: | ||
include: | ||
|
||
- &test | ||
stage: test | ||
os: linux | ||
node_js: "10" | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
after_script: NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage | ||
- <<: *test | ||
node_js: "12" | ||
- <<: *test | ||
node_js: "14" | ||
- <<: *test | ||
node_js: "15" | ||
|
||
## deploy linux | ||
- &deploy | ||
stage: deploy | ||
os: linux | ||
node_js: "10" | ||
env: | ||
- CXX=g++ | ||
script: | ||
- ./node_modules/.bin/node-pre-gyp package | ||
deploy: | ||
provider: releases | ||
token: ${GH_TOKEN} | ||
file_glob: true | ||
file: | ||
- build/stage/*/** | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
tags: true | ||
- <<: *deploy | ||
node_js: "12" | ||
- <<: *deploy | ||
node_js: "14" | ||
- <<: *deploy | ||
node_js: "15" | ||
|
||
## deploy osx | ||
- <<: *deploy | ||
os: osx | ||
node_js: "10" | ||
- <<: *deploy | ||
os: osx | ||
node_js: "12" | ||
- <<: *deploy | ||
os: osx | ||
node_js: "14" | ||
- <<: *deploy | ||
os: osx | ||
node_js: "15" | ||
|
||
## deploy windows | ||
- <<: *deploy | ||
os: windows | ||
node_js: "10" | ||
- <<: *deploy | ||
os: windows | ||
node_js: "12" | ||
- <<: *deploy | ||
os: windows | ||
node_js: "14" | ||
- <<: *deploy | ||
os: windows | ||
node_js: "15" | ||
|
||
notifications: | ||
recipients: | ||
- [email protected] | ||
email: | ||
on_success: change | ||
on_failure: always |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.