From 525a3bb8ee98bf14d654e4e5a407a25dbb82b35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=94=D0=B5=D1=80?= =?UTF-8?q?=D0=B3=D0=B0=D1=87=D0=B5=D0=B2?= Date: Mon, 5 Feb 2024 14:00:19 +0600 Subject: [PATCH] add build.yml file --- .github/workflows/build.yml | 20 +++++++++----------- .idea/modules.xml | 8 -------- 2 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644 .idea/modules.xml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac68c35..63b76b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,32 +1,31 @@ -name: Build - +name: SonarCloud on: push: branches: - main pull_request: types: [opened, synchronize, reopened] - jobs: build: - name: Build + name: Build and analyze runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 17 - - name: Cache SonarQube packages - uses: actions/cache@v1 + distribution: 'zulu' # Alternative distribution options are available. + - name: Cache SonarCloud packages + uses: actions/cache@v3 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} @@ -34,5 +33,4 @@ jobs: - name: Build and analyze env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=gehtsoft-usa_deeper-sast-demo_AY14AqsQcXqd9qGs23kB -Dsonar.projectName='deeper-sast-demo' + run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=SonarSourceResearch_DeepSAST_Demo diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 9e4696e..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file