From 7118ccafa95916267c2160cdaf12b4be95e1f6b2 Mon Sep 17 00:00:00 2001 From: Subhrodip Mohanta Date: Fri, 28 Aug 2020 12:17:38 +0530 Subject: [PATCH] Update maven-ci.yml Removed if clause for building code in main codebase from the CI pipeline. --- .github/workflows/maven-ci.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index 9281c0f3d..304953bc9 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -49,14 +49,10 @@ jobs: ${{ runner.os }}-maven- # Some tests need screen access - name: Install xvfb - run: sudo apt-get install xvfb + run: sudo apt-get install -y 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