-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Threw a kludge in there to run tap with lower coverage reqs on Windows.
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
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,45 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
platform: | ||
- os: ubuntu-latest | ||
shell: bash | ||
- os: macos-latest | ||
shell: bash | ||
- os: windows-latest | ||
shell: powershell | ||
|
||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.platform.os }} | ||
defaults: | ||
run: | ||
shell: ${{ matrix.platform.shell }} | ||
|
||
steps: | ||
# there are files here that make windows unhappy by default | ||
- name: Support longpaths | ||
run: git config --global core.longpaths true | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v1.1.0 | ||
|
||
- name: Use Nodejs ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: use latest npm | ||
run: npm i -g npm@latest | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run Tap Tests | ||
run: npm test -- -c -t0 |
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
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,20 @@ | ||
const platform = process.platform === 'win32' ? 'win32' : 'posix' | ||
const {spawn} = require('child_process') | ||
const c = spawn(process.execPath, [ | ||
process.env.npm_execpath, | ||
'run', | ||
`test:${platform}`, | ||
'--', | ||
...process.argv.slice(2), | ||
], { | ||
stdio: 'inherit', | ||
}) | ||
c.on('close', (code, signal) => { | ||
process.exitCode = code | ||
if (signal) { | ||
process.kill(process.pid, signal) | ||
setTimeout(() => {}, 200) | ||
} | ||
}) | ||
process.on('SIGTERM', () => c.kill('SIGTERM')) | ||
process.on('SIGINT', () => c.kill('SIGINT')) |