simplify gh action

This commit is contained in:
Olivier Lamy 2021-12-15 15:29:05 +01:00 committed by GitHub
parent d83feb614b
commit b6f1a81128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 14 deletions

View File

@ -19,11 +19,9 @@ name: GitHub CI
on: on:
push: push:
branches: branches-ignore:
- master - dependabot/**
pull_request: pull_request:
branches:
- master
jobs: jobs:
build: build:
@ -40,20 +38,12 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up cache for ~./m2/repository
uses: actions/cache@v2.1.7
with:
path: ~/.m2/repository
key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ matrix.os }}-java${{ matrix.java }}-
maven-${{ matrix.os }}-
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v2 uses: actions/setup-java@v2.3.1
with: with:
distribution: adopt distribution: adopt
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build with Maven - name: Build with Maven
run: mvn -e -B -V verify run: mvn -e -B -V verify