From 911cfd64afcffb22af17d5b381fa4ac92a9f5aa8 Mon Sep 17 00:00:00 2001 From: Subhrodip Mohanta Date: Fri, 16 Oct 2020 09:36:02 +0530 Subject: [PATCH 1/2] Update maven-pr-builder.yml --- .github/workflows/maven-pr-builder.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-pr-builder.yml b/.github/workflows/maven-pr-builder.yml index f970c0ee5..a451f4c86 100644 --- a/.github/workflows/maven-pr-builder.yml +++ b/.github/workflows/maven-pr-builder.yml @@ -29,6 +29,7 @@ name: Java PR Builder on: pull_request: branches: [ master ] + types: [ opened, reopened, synchronize, labeled, unlabeled ] jobs: build: @@ -36,20 +37,26 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - name: Checkout Code + uses: actions/checkout@v2 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - - uses: actions/cache@v2 + + - name: Cache Maven Dependecies + uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- + # Some tests need screen access - name: Install xvfb run: sudo apt-get install -y xvfb + # This worflow is only for building Pull Requests, the master branch runs Sonar analysis on the main repository. # SonarQube scan does not work for forked repositories. # See https://jira.sonarsource.com/browse/MMF-1371 From 38cc490e3f2cb309659a3f5bafa4b843f049cace Mon Sep 17 00:00:00 2001 From: Subhrodip Mohanta Date: Sat, 17 Oct 2020 10:14:49 +0530 Subject: [PATCH 2/2] update namespaces of different steps of build job --- .github/workflows/maven-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index f7bc81695..048a1bc80 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -39,7 +39,8 @@ jobs: steps: - - uses: actions/checkout@v2 + - name: Checkout Code + uses: actions/checkout@v2 with: # Disabling shallow clone for improving relevancy of SonarQube reporting fetch-depth: 0 @@ -56,7 +57,8 @@ jobs: key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - - uses: actions/cache@v2 + - name: Cache Maven dependencies + uses: actions/cache@v2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}