aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-13 20:06:07 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-13 20:06:07 +0200
commit90211bfe2aec312971e8d66dade778d3f0285554 (patch)
tree2d0c4e80c5f8809c7d8e0b8ac1511f44e57b5142 /.github/workflows/build.yml
parentci: fix pull request actions (diff)
downloadrefinery-90211bfe2aec312971e8d66dade778d3f0285554.tar.gz
refinery-90211bfe2aec312971e8d66dade778d3f0285554.tar.zst
refinery-90211bfe2aec312971e8d66dade778d3f0285554.zip
ci: do not run sonar on pull requests
sonar does not currently support running on pull requests from forks: https://jira.sonarsource.com/browse/MMF-1371
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml4
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