diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 44ec62d..9c596de 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,16 +9,18 @@ on: jobs: build: runs-on: ubuntu-latest + container: maven:3.9-eclipse-temurin-17 steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup JDK 17 - uses: actions/setup-java@v4 + - name: Cache Maven dependencies + uses: actions/cache@v4 with: - distribution: temurin - java-version: '17' - cache: maven + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Build and test run: mvn -B clean verify