Skip to content

Commit

Permalink
Merge pull request #15712 from cdapio/fix-sonar-report-build
Browse files Browse the repository at this point in the history
fix sonar report build
  • Loading branch information
itsankit-google authored Sep 25, 2024
2 parents fded74b + 3e49d89 commit 9acc948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-sonar-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
submodules: recursive

- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand All @@ -50,9 +50,10 @@ jobs:
run-id: ${{ github.event.workflow_run.id }}
path: artifacts/

- name: Copy coverage report
- name: Copy downloaded artifacts
run: |
cp -r artifacts/reports-${{ github.event.workflow_run.id }}/* /tmp/cdap/cdap/
rm -rf artifacts/
- name: Sonar Report on PR
# For whatever reason we get PR 69 for develop branch with both head and base as develop.
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
)
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository11
key: ${{ runner.os }}-maven-${{ github.workflow }}-${{ hashFiles('**/pom.xml') }}
Expand All @@ -64,5 +64,8 @@ jobs:
path: |
**/target/rat.txt
**/target/surefire-reports/*
**/target/generated-test-sources/*
**/target/generated-sources/*
**/target/classes/*
**/target/test-classes/*
**/target/site/*

0 comments on commit 9acc948

Please sign in to comment.