diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 877eedc..e4eceba 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,6 +1,12 @@ name: SonarQube Analysis (C#) -on: push +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: sonarqube: @@ -13,10 +19,13 @@ jobs: with: fetch-depth: 0 - - name: Setup .NET + - name: Setup .NET (Multiple Versions) uses: actions/setup-dotnet@v4 with: - dotnet-version: '8.0.x' + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x - name: Detect solution file run: |