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

chore: add github actions workflow config #3078

Merged
merged 13 commits into from Aug 26, 2019
32 changes: 32 additions & 0 deletions .github/workflows/nodejs.yml
@@ -0,0 +1,32 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: windows-2019
shellscape marked this conversation as resolved.
Show resolved Hide resolved

strategy:
matrix:
node: [ '10', '6' ]

name: Node ${{ matrix.node }} - Windows
shellscape marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Configure git line-breaks
run: git config --global core.autocrlf false
- name: Checkout repository
uses: actions/checkout@v1
- name: Configure Node version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Check npm version
run: IF ${{ matrix.node }} LSS 8 npm i npm@5 -g
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run tests
run: npm test
env:
CI: true
WINDOWS: true
32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

22 changes: 14 additions & 8 deletions package-lock.json

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

9 changes: 8 additions & 1 deletion package.json
Expand Up @@ -32,7 +32,13 @@
"test": "npm run test:all",
"test:all": "npm run test:only && npm run test:typescript && npm run test:leak",
"test:coverage": "nyc --reporter html mocha",
"test:leak": "npm i --silent --no-save weak@1 && node --expose-gc test/leak/index.js",
"test:leak": "cross-os test:leak:os",
"test:leak:os": {
"darwin": "npm run test:leak:nix",
"linux": "npm run test:leak:nix",
"win32": "echo 'Skipping test:leak on Windows'"
},
"test:leak:nix": "npm i --silent --no-save weak@1 && node --expose-gc test/leak/index.js",
"test:only": "mocha",
"test:quick": "mocha -b",
"test:typescript": "tsc --noEmit -p test/typescript && tsc --noEmit",
Expand Down Expand Up @@ -73,6 +79,7 @@
"codecov": "^3.5.0",
"console-group": "^0.3.3",
"core-js": "^3.2.1",
"cross-os": "^1.3.0",
"date-time": "^3.1.0",
"es5-shim": "^4.5.13",
"es6-shim": "^0.35.5",
Expand Down