From aa4ba21cde3cf325f70a99c0dd6a67770e34a742 Mon Sep 17 00:00:00 2001 From: Stuart Ferguson Date: Thu, 1 Feb 2024 11:10:28 +0000 Subject: [PATCH] Remove Sonar Cloud workflow --- .github/workflows/sonarcloud.yml | 51 -------------------------------- MessagingService.sln | 1 - 2 files changed, 52 deletions(-) delete mode 100644 .github/workflows/sonarcloud.yml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml deleted file mode 100644 index 80eedfc..0000000 --- a/.github/workflows/sonarcloud.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: SonarCloud Analysis - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - name: Build and analyze - runs-on: windows-latest - steps: - - name: Set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 1.11 - - uses: actions/checkout@v2 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Cache SonarCloud packages - uses: actions/cache@v1 - with: - path: ~\sonar\cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache SonarCloud scanner - id: cache-sonar-scanner - uses: actions/cache@v1 - with: - path: .\.sonar\scanner - key: ${{ runner.os }}-sonar-scanner - restore-keys: ${{ runner.os }}-sonar-scanner - - name: Install SonarCloud scanner - if: steps.cache-sonar-scanner.outputs.cache-hit != 'true' - shell: powershell - run: | - New-Item -Path .\.sonar\scanner -ItemType Directory - dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner - - name: Build and analyze - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - shell: powershell - run: | - .\.sonar\scanner\dotnet-sonarscanner begin /k:"TransactionProcessing_Messaging" /o:"transactionprocessing" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" - dotnet restore MessagingService.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} - dotnet build MessagingService.sln - .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file diff --git a/MessagingService.sln b/MessagingService.sln index 07cff92..95214f0 100644 --- a/MessagingService.sln +++ b/MessagingService.sln @@ -129,7 +129,6 @@ Global {6699EB4E-7F56-468D-9F1A-D094B8A19BAA} = {BF2482A1-13C0-4305-B732-AB62EBD9429B} {883DEFD0-7DDB-4F79-9996-2279E71CAF5B} = {9AEE6ADE-DD45-4605-A933-E06CF0BA4203} {327FAE7D-AF25-4380-AA8B-9FF7FCF46FBB} = {BF2482A1-13C0-4305-B732-AB62EBD9429B} - {B0C7F0FC-926D-407E-9301-A828BD215F3A} = {9AEE6ADE-DD45-4605-A933-E06CF0BA4203} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {1929C0FE-8CEB-4D0E-BD22-9E5E16E2B49F}