File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v3
1414 with :
1515 fetch-depth : 0
16+ - name : Generate unit-test coverage
17+ run : |
18+ touch .env
19+ docker compose run --rm --entrypoint /dev-ui/build.sh ui-components
20+ - name : Normalize lcov source paths
21+ run : |
22+ sudo chown -R "$(id -u):$(id -g)" build
23+ mkdir -p build/sonar
24+ cp build/test/coverage/*/lcov.info build/sonar/lcov.info
25+ sed -i 's#/app/\.tmp/javascript/src/#src/#g; s#\.tmp/javascript/src/#src/#g' build/sonar/lcov.info
1626 - name : SonarCloud Scan
1727 uses : SonarSource/sonarcloud-github-action@master
1828 env :
Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ sonar.organization=openlmis
33sonar.projectName =openlmis-ui-components
44sonar.sources =src
55sonar.sourceEncoding =UTF-8
6+ sonar.tests =src
7+ sonar.test.inclusions =**/*.spec.js
8+ sonar.exclusions =**/*.spec.js
9+ sonar.javascript.lcov.reportPaths =build/sonar/lcov.info
You can’t perform that action at this time.
0 commit comments