From 44223d7903ae619001e9e46df75f3859eff4dbfb Mon Sep 17 00:00:00 2001 From: Rakib Date: Thu, 18 Jan 2024 12:57:56 +0600 Subject: [PATCH] added static code analysis stage --- .github/workflows/main.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3736467..6b33cfe 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -102,22 +102,22 @@ jobs: - name: Checkout the code uses: actions/checkout@v3 -# - name: Run static-code-analysis -# run: echo Run static-code-analysis + - name: Run static-code-analysis + run: echo Run static-code-analysis - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'adopt' - java-version: '17' - - - name: Make gradlew executable - run: chmod +x ./gradlew - - - name: SonarCloud Scan - run: ./gradlew sonar -Dsonar.token=$SONAR_TOKEN - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Set up JDK 17 +# uses: actions/setup-java@v3 +# with: +# distribution: 'adopt' +# java-version: '17' +# +# - name: Make gradlew executable +# run: chmod +x ./gradlew +# +# - name: SonarCloud Scan +# run: ./gradlew sonar -Dsonar.token=$SONAR_TOKEN +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # package: # needs: [static-code-analysis] @@ -145,4 +145,4 @@ jobs: # name: tip-calculator.apk # path: app/build/outputs/apk/debug/app-debug.apk # tag: v1.0.${{ github.run_number }} -# token: ${{ secrets.TOKEN }} \ No newline at end of file +# token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file