Skip to content

Commit

Permalink
Merge pull request #1 from goddessfreya/master
Browse files Browse the repository at this point in the history
Electron 7 compatible changes
  • Loading branch information
soundar-m authored May 15, 2020
2 parents a03caf3 + 37cebc4 commit 81af0e2
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 429 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Node CI

on: [push]

jobs:
build:
strategy:
fail-fast: false
matrix:
node-version: [8.x, 10.x, 12.x]
platform:
- { os: windows-latest, force-hunspell: true }
- { os: windows-latest }
- { os: macos-latest, force-hunspell: true }
- { os: macos-latest }
- { os: ubuntu-latest, use-clang: true }

runs-on: ${{ matrix.platform.os }}
env:
SPELLCHECKER_PREFER_HUNSPELL: ${{ matrix.platform.hunspell }}

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test (clang)
if: matrix.platform.use-clang == true
run: |
export CC="$(which clang)"
export CPP="$(which clang++)"
npm install
npm test
- name: npm install, build, and test
run: |
npm install
npm test
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

18 changes: 0 additions & 18 deletions appveyor.yml

This file was deleted.

15 changes: 6 additions & 9 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
'variables': {
'conditions': [
['OS=="mac"', {
'spellchecker_use_hunspell%': 'true',
}],
['OS=="linux"', {
'spellchecker_use_hunspell': 'true',
}],
['OS=="win"', {
'spellchecker_use_hunspell': 'true',
}],
['OS=="mac"', { 'spellchecker_use_hunspell%': 'true' },
'OS=="linux"', { 'spellchecker_use_hunspell': 'true'},
'OS=="win"', { 'spellchecker_use_hunspell': 'true' },
'OS=="freebsd"', { 'spellchecker_use_hunspell': 'true' },
{ 'spellchecker_use_hunspell': 'false' }
],
],
},
'target_defaults': {
Expand Down
Loading

0 comments on commit 81af0e2

Please sign in to comment.