We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30cc4a7 commit 0036a6aCopy full SHA for 0036a6a
1 file changed
.github/workflows/build.yml
@@ -30,13 +30,17 @@ jobs:
30
path: ~/.gradle/caches
31
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
32
restore-keys: ${{ runner.os }}-gradle
33
- - name: Build and analyze
+ - name: Build and Test
34
+ run: ./gradlew build --info
35
+
36
+ - name: SonarQube Analysis
37
env:
38
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
39
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40
run: |
41
if [ -n "$SONAR_TOKEN" ]; then
- ./gradlew build sonarqube --info
42
+ ./gradlew sonarqube --info
43
else
- ./gradlew build --info
44
+ echo "SONAR_TOKEN is not set. Skipping analysis."
45
fi
46
+ continue-on-error: true
0 commit comments