diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3f595d5..c4f315e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,7 +5,7 @@ on: branches: - "main" tags: - - 'v*' + - '*' pull_request: branches: - "main" @@ -23,16 +23,22 @@ jobs: with: distribution: 'temurin' java-version: '25' - cache: 'maven' + + - name: Cache Maven repository + uses: actions/cache@v3 + with: + path: | + ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - name: Build package - run: | - chmod +x ./mvnw - ./mvnw --batch-mode --update-snapshots verify + run: mvn -B package --file pom.xml - name: Upload test reports if: always() - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v3 with: name: junit-reports path: | @@ -40,7 +46,7 @@ jobs: if-no-files-found: ignore - name: Upload Maven artifacts - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v3 with: name: maven-artifacts path: |