Skip to content

Commit

Permalink
update config to automatically use proper endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 26, 2024
1 parent 9196300 commit 5833d84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
run: cd frontend && npm run test -- --coverage

- name: Build and analyze
run: mvn clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }}
run: mvn clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.host.url=${{vars.SONAR_HOST_URL}}

7 changes: 4 additions & 3 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sonar.projectKey=Puzzle-OKR
sonar.projectName=Puzzle-OKR
# Use the -Dsonar.host.url=https://sonar.puzzle.ch flag to run the command locally
sonar.host.url=https://sonar-githubactions.puzzle.ch
#sonar.host.url=https://sonar.puzzle.ch

#For local usage only, on the pipeline the following server is used: https://sonar-githubactions.puzzle.ch
sonar.host.url=https://sonar.puzzle.ch


sonar.test.exclusions=backend/src/test/**/*

Expand Down

0 comments on commit 5833d84

Please sign in to comment.