Skip to content

ci: update Sonar

ci: update Sonar #1

Workflow file for this run

name: SonarCloud PR Analysis
on:
pull_request:
branches:
- '**' # Trigger on pull requests targeting any branch
jobs:
sonarcloud:

Check failure on line 9 in .github/workflows/sonar.yml

View workflow run for this annotation

GitHub Actions / SonarCloud PR Analysis

Invalid workflow file

The workflow is not valid. .github/workflows/sonar.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
name: Sonar Analysis
runs-on: ubuntu-latest
needs: test-build
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure full history is fetched for accurate analysis
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
name: coverage
path: coverage
- name: SonarCloud Scan
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.base=${{ github.base_ref }}