From e021a713b20334deb98d9d5551c2702bec32aeba Mon Sep 17 00:00:00 2001 From: anthorob Date: Wed, 18 Mar 2026 06:38:29 -0400 Subject: [PATCH] fix workflow --- .gitea/workflows/ci.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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: |