Skip to content

Commit af0b909

Browse files
committed
Upload coverage to Codacy. Fix #41.
1 parent 6b9ddd2 commit af0b909

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
- name: Test
3232
run: npm run test-ci
3333

34+
- name: Upload coverage reports
35+
uses: codacy/codacy-coverage-reporter-action@master
36+
with:
37+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
38+
coverage-reports: ./coverage/cobertura-coverage.xml
39+
3440
- name: Build Ionic
3541
run: ionic build
3642

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![build](https://github.com/numbersprotocol/capture-lite/workflows/build/badge.svg)](https://github.com/numbersprotocol/capture-lite/actions?query=workflow%3Abuild)
44
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/45ae18aaa6a7474497e0efd818452a46)](https://www.codacy.com/gh/numbersprotocol/capture-lite?utm_source=github.com&utm_medium=referral&utm_content=numbersprotocol/capture-lite&utm_campaign=Badge_Grade)
5+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/45ae18aaa6a7474497e0efd818452a46)](https://www.codacy.com/gh/numbersprotocol/capture-lite?utm_source=github.com&utm_medium=referral&utm_content=numbersprotocol/capture-lite&utm_campaign=Badge_Coverage)
56

67
## Highlight Features
78

karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ module.exports = function (config) {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, '../coverage'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
19+
dir: require('path').join(__dirname, './coverage'),
20+
reports: ['html', 'lcovonly', 'text-summary', 'cobertura'],
2121
fixWebpackSourcePaths: true
2222
},
2323
reporters: ['progress', 'kjhtml'],

0 commit comments

Comments
 (0)