From d024af78dcbfac44b444b61b98daf35ce00ec108 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Wed, 17 Nov 2021 18:24:42 +0100 Subject: [PATCH] Use maven-gh-actions-shared (#133) --- .../workflows/{maven.yml => maven-verify.yml} | 37 ++++--------------- 1 file changed, 8 insertions(+), 29 deletions(-) rename .github/workflows/{maven.yml => maven-verify.yml} (52%) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-verify.yml similarity index 52% rename from .github/workflows/maven.yml rename to .github/workflows/maven-verify.yml index 50c6947f0..96d42ebc0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-verify.yml @@ -15,37 +15,16 @@ # specific language governing permissions and limitations # under the License. -name: Java CI +name: Verify -on: [push, pull_request] +on: + push: + branches-ignore: + - dependabot/** + pull_request: jobs: build: - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - fail-fast: false - - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up cache for ~/.m2/repository - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: maven-${{ matrix.os }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - maven-${{ matrix.os }}- - - - name: Set up JDK 1.8 - uses: actions/setup-java@v2 - with: - java-version: '8' - distribution: 'adopt' - - - name: Build with Maven - run: mvn clean verify -e -B -V + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1