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

Commit e52fb4b

Browse files
jooskimdaveshanley
authored andcommitted
Add codecov integration and badges
Signed-off-by: Josh Kim <[email protected]>
1 parent 165c6f1 commit e52fb4b

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.github/workflows/transport-postmerge.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
scope: '@vmw'
1919
- run: npm install
2020
- run: npm test
21+
- uses: codecov/codecov-action@v1
22+
with:
23+
token: ${{ secrets.CODECOV_TOKEN }}
24+
files: ./coverage/cobertura/coverage.xml
25+
flags: unittests
26+
fail_ci_if_error: true
27+
verbose: true
2128
build:
2229
runs-on: ubuntu-20.04
2330
steps:

.github/workflows/transport-premerge.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ jobs:
1616
scope: '@vmw'
1717
- run: npm install
1818
- run: npm test
19+
- uses: codecov/codecov-action@v1
20+
with:
21+
token: ${{ secrets.CODECOV_TOKEN }}
22+
files: ./coverage/cobertura/coverage.xml
23+
flags: unittests
24+
fail_ci_if_error: true
25+
verbose: true
1926
build:
2027
runs-on: ubuntu-20.04
2128
steps:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Transport - TypeScript
22

3+
![Transport Post-merge pipeline](https://github.com/vmware/transport-typescript/workflows/Transport%20Post-merge%20pipeline/badge.svg)
4+
[![codecov](https://codecov.io/gh/vmware/transport-typescript/branch/master/graph/badge.svg?token=93M5R55L38)](https://codecov.io/gh/vmware/transport-typescript)
5+
36
## Overview
47
### What is Transport?
58

karma.conf.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ module.exports = function (config) {
4545
},
4646
reports: {
4747
"text-summary": "",
48-
"html": "coverage/"
48+
"html": "coverage/",
49+
"cobertura": {
50+
"directory": "coverage",
51+
"subdirectory": "cobertura",
52+
"filename": "coverage.xml"
53+
}
4954
},
5055
exclude: ['proxyTestApp/**/*.ts','chatClientApp/**/*.ts', './node_modules/**/*.d.ts']
5156
},

0 commit comments

Comments
 (0)