Skip to content

Commit

Permalink
use all coverage files in sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoLiberali committed Aug 23, 2023
1 parent 4215ea3 commit 28f4d79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: gotestsum --junitfile unit-tests.xml $(go list ./... | grep -v testintegration) -coverpkg=./... -coverprofile=coverage_unit.out
- uses: actions/upload-artifact@v3
with:
name: coverage_unit
name: coverage
path: coverage_unit.out
- name: Test Report
uses: dorny/test-reporter@v1
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
reporter: java-junit # Format of test results
- uses: actions/upload-artifact@v3
with:
name: coverage_int
name: coverage
path: coverage_int.out
- name: Stop containers
run: docker stop badaas-test-db
Expand Down Expand Up @@ -139,16 +139,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download unit tests line coverage report
- name: Download line coverage reports
uses: actions/download-artifact@v3
with:
name: coverage_unit
path: coverage_unit.out
- name: Download int tests line coverage report
uses: actions/download-artifact@v3
with:
name: coverage_int
path: coverage_int.out
name: coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ sonar.sources=.
sonar.exclusions=**/*_test.go,mocks/***,vendor/***
sonar.tests=.
sonar.test.inclusions=**/*_test.go,testintegration/***,test_e2e/***
sonar.go.coverage.reportPaths=coverage_unit.out/coverage_unit.out,coverage_int.out/coverage_int.out
sonar.go.coverage.reportPaths=*.out

0 comments on commit 28f4d79

Please sign in to comment.