From 925d9f6c72b461febe99d04e4a7c239b614dc292 Mon Sep 17 00:00:00 2001 From: Nico Koprowski Date: Fri, 24 May 2024 11:09:42 +0200 Subject: [PATCH] cicd: remove sonar scan from workflows --- .github/workflows/sonar-scan.yaml | 68 ------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 .github/workflows/sonar-scan.yaml diff --git a/.github/workflows/sonar-scan.yaml b/.github/workflows/sonar-scan.yaml deleted file mode 100644 index 994da5343..000000000 --- a/.github/workflows/sonar-scan.yaml +++ /dev/null @@ -1,68 +0,0 @@ -################################################################################ -# Copyright (c) 2021,2024 Contributors to the Eclipse Foundation -# -# See the NOTICE file(s) distributed with this work for additional -# information regarding copyright ownership. -# -# This program and the accompanying materials are made available under the -# terms of the Apache License, Version 2.0 which is available at -# https://www.apache.org/licenses/LICENSE-2.0. -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. -# -# SPDX-License-Identifier: Apache-2.0 -################################################################################ - -name: SonarCloud Scan -on: - push: - branches: - - main - - rc/** - workflow_dispatch: - -jobs: - sonar-scan: - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'adopt' - - #Use Maven package cache - - name: Cache local Maven repository - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - #Use Sonar cache - - name: Cache SonarCloud packages - uses: actions/cache@v4 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - #Verify with tests and sonar analysis - - name: Verify - run: ./mvnw -B verify sonar:sonar - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}