Skip to content

Commit 4d9e363

Browse files
authored
Merge pull request #62 from spdx/fixci
Check for Sonar credentials in CI
2 parents 9a2e172 + 5304351 commit 4d9e363

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ jobs:
3939
env:
4040
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42-
run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
42+
run: |
43+
if [[ $SONAR_TOKEN != "" ]]; then
44+
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
45+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ hs_err_pid*
2828
.project
2929
.settings/
3030
/bin/
31+
32+
# IntelliJ files
33+
.idea/

0 commit comments

Comments
 (0)