From 7917b1b835552f286c3a0282c05a64af6d319d4d Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Tue, 9 Dec 2025 16:28:40 +0100 Subject: [PATCH] Generalize pr-check. Use build-cache Signed-off-by: Eric Bottard --- .github/workflows/pr-check.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 3dd1f76b1db..0edc4202ae7 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -2,8 +2,6 @@ name: PR Check on: pull_request: - branches: - - main jobs: build: @@ -21,6 +19,14 @@ jobs: distribution: 'temurin' cache: 'maven' + - name: Setup Maven Build-Cache (~/.m2/build-cache) + uses: actions/cache@v4 + with: + path: ~/.m2/build-cache + key: build-cache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} + restore-keys: | + build-cache-${{ runner.os }}- + - name: Run tests run: | ./mvnw -ntp -B -U test