From 02dfe31ac7e277e713e3595cca5ce0b6307bc111 Mon Sep 17 00:00:00 2001 From: Deepika Tiwari Date: Mon, 8 Jul 2024 13:36:56 +0200 Subject: [PATCH] Try setup-maven-action --- .github/workflows/maven.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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') }}