From 16a0d4bd177bde866e6075c47cff1777709dc746 Mon Sep 17 00:00:00 2001 From: Stephane Bouchet Date: Fri, 6 Oct 2023 09:47:32 +0200 Subject: [PATCH] Update build_test.yml --- .github/workflows/build_test.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 36442124..33956b75 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -16,29 +16,36 @@ jobs: steps: - name: Checkout PR branch - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 # Checkout global JBT settings.xml - name: Checkout JBoss Tools Build CI - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: jbosstools/jbosstools-build-ci path: build-ci # Java JDK 11 used for maven build - name: Setup Java ${{ matrix.java }} - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk architecture: x64 + distribution: 'temurin' + cache: maven + # Install Maven 3.9 + - name: Set up Maven + uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f #v4.5 + with: + maven-version: 3.9.4 # Try to find and apply jbosstools cache - name: Cache local Maven repository for JBoss Tools components - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.m2/repository key: jbosstools-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}