diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 23a52bb0902..009e90d7447 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: Maven 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