Skip to content

Commit

Permalink
adding github actions (#23)
Browse files Browse the repository at this point in the history
adding github actions
  • Loading branch information
Cherry committed Oct 8, 2019
2 parents de50d87 + f885a06 commit 2f4be99
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 27 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test
on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [8, 10, 11]
name: Node ${{ matrix.node }} Test
steps:
- uses: actions/checkout@v1
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

38 changes: 22 additions & 16 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "eslint .",
"mocha": "mocha",
"docs": "jsdoc2md lib/spawnpoint.js > docs.md",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report --reporter=text-lcov",
"nyc": "nyc mocha",
"precommit": "lint"
},
Expand Down

0 comments on commit 2f4be99

Please sign in to comment.