From 1e1c84fdfe10658541051a05521bb3fa9a2aca39 Mon Sep 17 00:00:00 2001 From: Radoslav Husar Date: Tue, 22 Oct 2024 12:09:21 +0200 Subject: [PATCH] CI: Replace explicit caching with setup-java cache mechanism; use maven-wrapper for reproducible builds. --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a89816d..4653d0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,16 +23,10 @@ jobs: with: distribution: temurin java-version: ${{ matrix.java }} - - name: Cache local Maven repository - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + cache: maven - name: Build with Maven using JDK ${{ matrix.java }} - run: mvn --batch-mode --no-transfer-progress verify - - name: Archive Failsafe Reports + run: ./mvnw --batch-mode --no-transfer-progress verify + - name: Upload Failsafe Reports if: failure() uses: actions/upload-artifact@v4 with: