Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonaaron committed Nov 19, 2019
1 parent c33e69e commit 03b4659
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
repo_token: ghY6fJL969V76s6h7V40zsF2UUAagYacP
27 changes: 27 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on: ["push", "pull_request"]

name: Coveralls

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v1

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: npm install, npm run coveralls
run: |
npm install
npm run coveralls
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"main": "index.js",
"scripts": {
"test": "jest --coverage",
"lint": "standard --fix"
"lint": "standard --fix",
"coveralls": "jest --coverage --coverageReporters=lcov --coverageDirectory=./coverage"
},
"engines": {
"node": "8.10.0"
Expand Down

0 comments on commit 03b4659

Please sign in to comment.