diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c59e0b4b5..e20534dca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,12 +11,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: | + ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/*.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Set up JDK uses: actions/setup-java@v4 with: distribution: 'corretto' java-version: '21' - cache: 'maven' - name: Test with Maven run: mvn test