Skip to content

Commit

Permalink
Update nodejs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goddessfreya authored Dec 20, 2019
1 parent f80be0a commit 855c3c1
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
fail-fast: false
matrix:
node-version: [8.x, 10.x, 12.x]
python-version: [3.6, 3.7, 3.8] # 2.7, 3.5,
platform:
- { os: windows-latest, hunspell: true }
- { os: windows-latest }
- { os: macos-latest, hunspell: true }
- { os: macos-latest }
- { os: ubuntu-latest }
- { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ }

runs-on: ${{ matrix.platform.os }}

Expand All @@ -24,14 +24,39 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: npm install, build, and test
run: |
npm install
npm test
env:
SPELLCHECKER_PREFER_HUNSPELL: ${{ matrix.platform.hunspell }}
CC: ${{ matrix.platform.c-compiler }}
CXX: ${{ matrix.platform.cpp-compiler }}

build-gyp:
strategy:
fail-fast: false
matrix:
node-version: [8.x, 10.x, 12.x]
python-version: [3.6, 3.7, 3.8] # 2.7, 3.5,
platform:
- { os: windows-latest }
- { os: macos-latest }
- { os: ubuntu-latest }
- { os: ubuntu-latest, c-compiler: clang, cpp-compiler: clang++ }

runs-on: ${{ matrix.platform.os }}

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: node-gyp install
run: |
npm install -g node-gyp
Expand All @@ -40,4 +65,5 @@ jobs:
node-gyp configure
node-gyp build
env:
SPELLCHECKER_PREFER_HUNSPELL: ${{ matrix.platform.hunspell }}
CC: ${{ matrix.platform.c-compiler }}
CXX: ${{ matrix.platform.cpp-compiler }}

0 comments on commit 855c3c1

Please sign in to comment.