diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4be4238..2bc7279 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,16 +6,14 @@ jobs: build_and_test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Setup Maven + uses: s4u/setup-maven-action@v1.14.0 with: - fetch-depth: 0 - - name: Set up JDK - uses: actions/setup-java@v4 - with: - distribution: corretto + java-distribution: corretto java-version: 11 + maven-version: 3.6.0 - name: "Cache local Maven" - uses: actions/cache@v4 + uses: actions/cache with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}