Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Add codecov integration and badges
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Kim <[email protected]>
  • Loading branch information
jooskim authored and daveshanley committed Feb 11, 2021
1 parent 165c6f1 commit e52fb4b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/transport-postmerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ jobs:
scope: '@vmw'
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/cobertura/coverage.xml
flags: unittests
fail_ci_if_error: true
verbose: true
build:
runs-on: ubuntu-20.04
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/transport-premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
scope: '@vmw'
- run: npm install
- run: npm test
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/cobertura/coverage.xml
flags: unittests
fail_ci_if_error: true
verbose: true
build:
runs-on: ubuntu-20.04
steps:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Transport - TypeScript

![Transport Post-merge pipeline](https://github.com/vmware/transport-typescript/workflows/Transport%20Post-merge%20pipeline/badge.svg)
[![codecov](https://codecov.io/gh/vmware/transport-typescript/branch/master/graph/badge.svg?token=93M5R55L38)](https://codecov.io/gh/vmware/transport-typescript)

## Overview
### What is Transport?

Expand Down
7 changes: 6 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ module.exports = function (config) {
},
reports: {
"text-summary": "",
"html": "coverage/"
"html": "coverage/",
"cobertura": {
"directory": "coverage",
"subdirectory": "cobertura",
"filename": "coverage.xml"
}
},
exclude: ['proxyTestApp/**/*.ts','chatClientApp/**/*.ts', './node_modules/**/*.d.ts']
},
Expand Down

0 comments on commit e52fb4b

Please sign in to comment.