Skip to content

Commit

Permalink
[AAE-28943] move uploading coverage inside the build
Browse files Browse the repository at this point in the history
  • Loading branch information
mavotto committed Dec 2, 2024
1 parent c9ed238 commit 0c5de41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/actions/maven-build-and-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ runs:
MAVEN_USERNAME: ${{ inputs.maven-username }}
MAVEN_PASSWORD: ${{ inputs.maven-password }}

- name: Load JaCoCo report on SonarCloud
shell: bash
run: |
mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=alfresco -Dsonar.projectKey=Alfresco_hxp-studio-services
- name: Remove running docker containers
if: inputs.reuse-testcontainers == 'true'
shell: bash
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/process-coverage-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ runs:
using: composite
steps:
- name: Load JaCoCo report on SonarCloud
env:
SONAR_TOKEN: ${{ inputs.sonar_token }}
shell: bash
run: |
mvn sonar:sonar -Dsonar.token=${{ inputs.sonar_token }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=alfresco -Dsonar.projectKey=Alfresco_hxp-studio-services
mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=alfresco -Dsonar.projectKey=Alfresco_hxp-studio-services
# - name: SonarCloud Scan
# uses: sonarsource/[email protected]
Expand Down

0 comments on commit 0c5de41

Please sign in to comment.