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 Feb 17, 2021
1 parent 9b43f98 commit 4c1bcdb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 6 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,35 @@
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
npm run covreport
- name: Upload coverage report to coveralls.io
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -16,8 +16,7 @@
"scripts": {
"lint": "eslint .",
"test": "npm run lint && nyc mocha",
"coverage": "npm run test && nyc report --reporter html",
"report-coveralls": "nyc report --reporter=text-lcov | coveralls"
"covreport": "nyc report --reporter html && nyc report --reporter lcov"
},
"files": [
"index.js",
Expand All @@ -27,7 +26,6 @@
"devDependencies": {
"ansi": "^0.3.1",
"benchmark": "^2.1.1",
"coveralls": "^3.0.3",
"eslint": "^7.1.0",
"mocha": "^8.0.1",
"nyc": "^15.0.1"
Expand Down

0 comments on commit 4c1bcdb

Please sign in to comment.