Skip to content

Commit

Permalink
SonarScanにモジュールを検索を導入する
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed May 10, 2021
1 parent b670708 commit db524d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/sonarscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,15 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN
shell: cmd
run: OpenCppCoverage.exe
--export_type xml:tests1-coverage.xml
--modules ${{ github.workspace }}\tests\build\${{ env.BUILD_PLATFORM }}\${{ env.BUILD_CONFIGURATION }}\unittests\tests1.exe
--modules $(Get-ChildItem -Recurse tests1.exe)[0].FullName
--sources ${{ github.workspace }}
--excluded_sources ${{ github.workspace }}\tests\googletest
--working_dir .\${{ env.BUILD_PLATFORM }}\${{ env.BUILD_CONFIGURATION }}
--cover_children
--
.\tests\build\${{ env.BUILD_PLATFORM }}\${{ env.BUILD_CONFIGURATION }}\unittests\tests1.exe
$(Get-ChildItem -Recurse tests1.exe)[0].FullName
--gtest_output=xml:${{ github.workspace }}\tests1-googletest.xml

- name: Set up JDK 11
Expand Down Expand Up @@ -147,4 +146,4 @@ jobs:
-D"sonar.cfamily.threads=2" `
-D"sonar.coverage.exclusions=help\**\*.js,tests\unittests\coverage.cpp,tools\**\*.js" `
-D"sonar.coverageReportPaths=tests1-coverage.xml" `
-D"sonar.exclusions=.sonar\**\*,bw-output\**\*,HeaderMake\**\*,tests\build\**\*,tests\googletest\**\*,**\test-*,tests*-*.xml"
-D"sonar.exclusions=.sonar\**\*,build\**\*,bw-output\**\*,HeaderMake\**\*,tests\build\**\*,tests\googletest\**\*,**\test-*,tests*-*.xml"

0 comments on commit db524d6

Please sign in to comment.