Skip to content

Commit

Permalink
CI: Travis => Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Nov 19, 2020
1 parent 38a1b9f commit dcb5d16
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 3'

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ '12', '14' ]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- name: Test
run: npm test

- name: Create coverage report
run: npm run report-coveralls

- name: Upload coverage report to coveralls.io
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint": "eslint .",
"test": "npm run lint && nyc mocha && node support/specsplit.js",
"coverage": "npm run test && nyc report --reporter html",
"report-coveralls": "nyc report --reporter=text-lcov | coveralls",
"report-coveralls": "nyc --reporter=lcov mocha",
"doc": "node support/build_doc.js",
"gh-doc": "npm run doc && gh-pages -d apidoc -f",
"demo": "npm run lint && node support/build_demo.js",
Expand Down

0 comments on commit dcb5d16

Please sign in to comment.