Skip to content

Commit

Permalink
test: use sonarcloud github action
Browse files Browse the repository at this point in the history
  • Loading branch information
QuakeEye committed Feb 27, 2024
1 parent 3838767 commit e57bc18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,12 @@ jobs:
with:
java-version: 11
distribution: 'zulu' # Alternative distribution options are available.
- name: Prepare Sonarcloud Analysis
- name: Perform Sonar Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: >
.\.sonar\scanner\dotnet-sonarscanner begin
/k:"team-zomsa_aplib.net-demo" /o:"team-zomsa"
/d:sonar.token="${{ secrets.SONAR_TOKEN }}"
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
- name: Run SonarCloud Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"


unity-test:
name: Test with Unity Test Runner
Expand Down
6 changes: 6 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
sonar.organization=team-zomsa
sonar.projectKey=team-zomsa_aplib.net-demo

# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
sonar.sources=./aplib.net-demo/

0 comments on commit e57bc18

Please sign in to comment.