Skip to content

Commit

Permalink
Merge pull request #82 from Arquisoft/test/sonar-spring
Browse files Browse the repository at this point in the history
Added Java Spring Boot project to SonarCloud
  • Loading branch information
sergiorodriguezgarcia authored Mar 5, 2024
2 parents 7e20141 + 1164b62 commit 08e8d6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
- uses: actions/checkout@v4
- run: npm --prefix webapp ci
- run: npm --prefix webapp test -- --coverage
- name: Analyze with SonarCloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
unit-tests-api:
runs-on: ubuntu-latest
steps:
Expand Down
10 changes: 7 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ sonar.projectVersion=1.0

# Encoding of the source code. Default is default system encoding
sonar.host.url=https://sonarcloud.io
sonar.language=js
sonar.language=js,java
sonar.projectName=wiq_en2b

sonar.coverage.exclusions=**/*.test.js,**/*.test.jsx
sonar.sources=webapp/src/components
sonar.sources=webapp/src/components,api/src/main/java
sonar.sourceEncoding=UTF-8
sonar.exclusions=node_modules/**
sonar.javascript.lcov.reportPaths=**/coverage/lcov.info
sonar.javascript.lcov.reportPaths=**/coverage/lcov.info

#Java specific config
sonar.java.binaries=api/target/classes
sonar.tests=api/src/test/java

0 comments on commit 08e8d6c

Please sign in to comment.