We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37d697 commit 2fdd7a1Copy full SHA for 2fdd7a1
.github/workflows/maven.yml
@@ -46,7 +46,13 @@ jobs:
46
# Some tests need screen access
47
- name: Install xvfb
48
run: sudo apt-get install xvfb
49
+ # SonarQube scan does not work for forked repositories
50
+ # See https://jira.sonarsource.com/browse/MMF-1371
51
- name: Build with Maven
52
+ if: github.ref != ‘refs/heads/master’
53
+ run: xvfb-run mvn clean verify
54
+ - name: Build with Maven and run SonarQube analysis
55
+ if: github.ref == ‘refs/heads/master’
56
run: xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
57
env:
58
# These two env variables are needed for sonar analysis
0 commit comments