Skip to content

Commit

Permalink
chore: Add code coverage report generation (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
arajkumar authored Nov 6, 2020
1 parent 1d52180 commit f14c662
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

Expand All @@ -19,6 +21,13 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
- run: npm test
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Run the unit tests
run: npm test -- --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Dependency Analytics LSP Server

[![Build Status](https://ci.centos.org/job/devtools-fabric8-analytics-lsp-server-npm-publish-build-master/badge/icon)](https://ci.centos.org/job/devtools-fabric8-analytics-lsp-server-npm-publish-build-master/)
[![NPM Publish](https://ci.centos.org/job/devtools-fabric8-analytics-lsp-server-npm-publish-build-master/badge/icon)](https://ci.centos.org/job/devtools-fabric8-analytics-lsp-server-npm-publish-build-master/)
[![codecov](https://codecov.io/gh/fabric8-analytics/fabric8-analytics-lsp-server/branch/master/graph/badge.svg?token=aVThXjheDf)](https://codecov.io/gh/fabric8-analytics/fabric8-analytics-lsp-server)
![CI Build](https://github.com/fabric8-analytics/fabric8-analytics-lsp-server/workflows/CI%20Build/badge.svg)

Language Server(LSP) that can analyze your dependencies specified in `package.json` and `pom.xml`.

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
],
"reporter": [
"text",
"html"
"html",
"json"
],
"sourceMap": true,
"instrument": true
Expand Down

0 comments on commit f14c662

Please sign in to comment.