From e6007958e98d8d5033d037fa34d41dc8f599a498 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Thu, 29 Jun 2023 17:06:07 -0400 Subject: [PATCH] `s4u/setup-maven-action` to get a current Maven version --- .github/workflows/maven.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 487271d..34b80b3 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,8 +1,7 @@ name: CI on: + push: pull_request: - branches: - - master jobs: build: strategy: @@ -10,12 +9,10 @@ jobs: java: ["11", "17"] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v3 + - name: Setup Maven Action + uses: s4u/setup-maven-action@v1.8.0 with: java-version: "${{ matrix.java }}" - distribution: temurin - name: Build with Maven run: mvn -B -V -ntp -Dstyle.color=always package env: