Skip to content

Commit

Permalink
Adds Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Oct 17, 2022
1 parent a514929 commit 0b1d9ce
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,22 @@ jobs:
run: yarn run build
- name: Run tests
run: yarn run test
- name: Submit coverage results
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.node-version }}
parallel: true

coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Consolidate test coverage from different jobs
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

webpack:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# JSON Event Parser

[![Build status](https://github.com/comunica/json-event-parser.js/workflows/CI/badge.svg)](https://github.com/comunica/json-event-parser.js/actions?query=workflow%3ACI)
[![Coverage Status](https://coveralls.io/repos/github/comunica/json-event-parser.js/badge.svg?branch=master)](https://coveralls.io/github/comunica/json-event-parser.js?branch=master)
[![npm version](https://badge.fury.io/js/json-event-parser.svg)](https://www.npmjs.com/package/json-event-parser)

A streaming SAX-style JSON parser.
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@types/jest": "^28.0.0",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.1.1",
"coveralls": "^3.0.0",
"eslint": "^7.9.0",
"eslint-config-es": "^3.23.0",
"eslint-import-resolver-typescript": "^2.3.0",
Expand Down Expand Up @@ -83,6 +84,7 @@
"scripts": {
"test": "jest ${1}",
"test-watch": "jest ${1} --watch",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"lint": "eslint . --ext .ts --cache",
"build": "tsc",
"validate": "npm ls",
Expand Down

0 comments on commit 0b1d9ce

Please sign in to comment.