Skip to content

Commit

Permalink
fix sonar report build
Browse files Browse the repository at this point in the history
  • Loading branch information
itsankit-google committed Sep 18, 2024
1 parent 6f4024b commit 709ec9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/build-sonar-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ jobs:
steps:
# Pinned 1.0.0 version
- uses: marocchino/action-workflow_run-status@54b6e87d6cb552fc5f36dbe9a722a6048725917a

- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}

- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
Expand All @@ -44,6 +49,12 @@ jobs:
run-id: ${{ github.event.workflow_run.id }}
path: artifacts/

- name: Copy coverage report
run: |
mkdir -p cdap-coverage/target/
cp -r artifacts/reports-${{ github.event.workflow_run.id }}/cdap-coverage/target/ cdap-coverage/target/
ls -R cdap-coverage
- name: Sonar Report on PR
# For whatever reason we get PR 69 for develop branch with both head and base as develop.
if: ${{ github.event.workflow_run.pull_requests[0].head.ref != github.event.workflow_run.pull_requests[0].base.ref }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
submodules: recursive
- name: Cache
uses: actions/cache@v4
Expand Down

0 comments on commit 709ec9c

Please sign in to comment.