fix workflow
This commit is contained in:
1 parent
91aaafeb40
commit
e021a713b2
1 file changed
+13
-7
+13
-7
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user