提交 2fdd7a11 编写于 作者: I Ilkka Seppälä

SonarQube check runs only in master branch (workaround for...

SonarQube check runs only in master branch (workaround for https://jira.sonarsource.com/browse/MMF-1371)
上级 f37d697a
......@@ -46,7 +46,13 @@ jobs:
# Some tests need screen access
- name: Install xvfb
run: sudo apt-get install xvfb
# SonarQube scan does not work for forked repositories
# See https://jira.sonarsource.com/browse/MMF-1371
- name: Build with Maven
if: github.ref != ‘refs/heads/master’
run: xvfb-run mvn clean verify
- name: Build with Maven and run SonarQube analysis
if: github.ref == ‘refs/heads/master’
run: xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
env:
# These two env variables are needed for sonar analysis
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册