diff --git a/.github/workflows/maven.yml b/.github/workflows/maven-verify.yml similarity index 50% rename from .github/workflows/maven.yml rename to .github/workflows/maven-verify.yml index 5141fa7..aef403b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven-verify.yml @@ -15,38 +15,17 @@ # specific language governing permissions and limitations # under the License. -name: GitHub CI +name: Verify -on: [push, pull_request] +on: + push: + branches-ignore: + - dependabot/** + pull_request: jobs: build: + name: Verify + uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v1 - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] - java: [8, 11, 17-ea] - fail-fast: false - runs-on: ${{ matrix.os }} - - steps: - - name: Checkout - uses: actions/checkout@v2.3.4 - - - name: Cache local Maven repository - uses: actions/cache@v2.1.6 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - - name: Set up JDK - uses: actions/setup-java@v2.3.1 - with: - java-version: ${{ matrix.java }} - distribution: 'temurin' - - - name: Build with Maven - run: mvn verify -e -B -V -P run-its