Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci-django-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,23 @@ jobs:
- name: Store coverage.xml
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: coverage.xml
path: ${{ inputs.working-directory && format('{0}/', inputs.working-directory) || ''}}coverage.xml
key: cache-${{ github.run_id }}-${{ github.run_attempt }}

sonarcloud:
name: Run SonarQube Cloud Scan
runs-on: ubuntu-latest
needs: tests
defaults:
run:
working-directory: ${{ inputs.working-directory }}

steps:
- uses: actions/checkout@v4
- name: Restore coverage.xml
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
with:
path: coverage.xml
path: ${{ inputs.working-directory && format('{0}/', inputs.working-directory) || ''}}coverage.xml
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
fail-on-cache-miss: true
# Without this workaround, SonarQube Cloud reports a warning about an incorrect source path
Expand Down