Skip to content

Commit

Permalink
Added lcov file generation to the frontend module [#350]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Jun 15, 2020
1 parent 14c1277 commit b6f529d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/sonarcloud-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ jobs:
with:
java-version: 12
- name: Build
run: mvn clean package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=comixed -Dsonar.projectKey=comixed_comixed -Dsonar.sources=./src -Dsonar.exclusions=**/*test*/** -Dsonar.test.inclusions=**/*test*/** -Pci
run: >
mvn clean package sonar:sonar
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.organization=comixed
-Dsonar.projectKey=comixed_comixed
-Dsonar.sources=./src
-Dsonar.exclusions=**/*test*/**
-Dsonar.test.inclusions=**/*test*/**
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Pci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
2 changes: 1 addition & 1 deletion comixed-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"test": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e"
},
Expand Down
3 changes: 2 additions & 1 deletion comixed-frontend/src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ module.exports = function(config) {
},
coverageIstanbulReporter: {
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
fixWebpackSourcePaths: true,
dir: require('path').join(__dirname, '../coverage')
},
angularCli: {
environment: 'dev'
Expand Down

0 comments on commit b6f529d

Please sign in to comment.