diff options
-rw-r--r-- | .github/workflows/build.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba19e388..1fa16a43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -41,7 +41,11 @@ jobs: | |||
41 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | 41 | key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
42 | restore-keys: ${{ runner.os }}-yarn | 42 | restore-keys: ${{ runner.os }}-yarn |
43 | - name: Gradle build and Sonar analyze | 43 | - name: Gradle build and Sonar analyze |
44 | if: ${{ github.event_name != 'pull_request' }} | ||
44 | env: | 45 | env: |
45 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any | 46 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any |
46 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | 47 | SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
47 | run: ./gradlew build sonarqube -Pci --info | 48 | run: ./gradlew build sonarqube -Pci --info |
49 | - name: Gradle build for pull request | ||
50 | if: ${{ github.event_name == 'pull_request' }} | ||
51 | run: ./gradlew build --info | ||