Skip to content

Commit

Permalink
added static code analysis stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakib committed Jan 18, 2024
1 parent 074b296 commit 44223d7
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 }}
# token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 44223d7

Please sign in to comment.