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