diff options
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de55ffcf..80d6b4f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -20,7 +20,7 @@ jobs: | |||
20 | - name: Checkout code | 20 | - name: Checkout code |
21 | uses: actions/checkout@v2 | 21 | uses: actions/checkout@v2 |
22 | with: | 22 | with: |
23 | fetch-depth: ${{ !steps.check-secret.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis | 23 | fetch-depth: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set && 1 || 0 }} # Shallow clones should be disabled for a better relevancy of SonarCloud analysis |
24 | - name: Set up JDK 17 | 24 | - name: Set up JDK 17 |
25 | uses: actions/setup-java@v1 | 25 | uses: actions/setup-java@v1 |
26 | with: | 26 | with: |
@@ -34,7 +34,7 @@ jobs: | |||
34 | restore-keys: ${{ runner.os }}-gradle | 34 | restore-keys: ${{ runner.os }}-gradle |
35 | - name: Cache Sonar packages | 35 | - name: Cache Sonar packages |
36 | uses: actions/cache@v2 | 36 | uses: actions/cache@v2 |
37 | if: ${{ steps.check-secret.is_SONAR_TOKEN_set }} | 37 | if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} |
38 | with: | 38 | with: |
39 | path: | | 39 | path: | |
40 | ~/.sonar/cache | 40 | ~/.sonar/cache |
@@ -55,11 +55,11 @@ jobs: | |||
55 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | 55 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
56 | restore-keys: ${{ runner.os }}-yarn | 56 | restore-keys: ${{ runner.os }}-yarn |
57 | - name: Gradle build | 57 | - name: Gradle build |
58 | if: ${{ !steps.check-secret.is_SONAR_TOKEN_set }} | 58 | if: ${{ !steps.check-secret.outputs.is_SONAR_TOKEN_set }} |
59 | run: | | 59 | run: | |
60 | ./gradlew build -Pci --info | 60 | ./gradlew build -Pci --info |
61 | - name: Gradle build and Sonar analyze | 61 | - name: Gradle build and Sonar analyze |
62 | if: ${{ steps.check-secret.is_SONAR_TOKEN_set }} | 62 | if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} |
63 | env: | 63 | env: |
64 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any | 64 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any |
65 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | 65 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |