mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:26:51 +00:00
feature /ci(github-actions): add test report upload and summary steps
Upload test reports as artifacts and generate a test summary report for better CI visibility
This commit is contained in:
parent
0459b154d5
commit
79a8c92d33
22
.github/workflows/build_pull_request.yml
vendored
22
.github/workflows/build_pull_request.yml
vendored
@ -74,6 +74,28 @@ jobs:
|
||||
echo consents.allowed=true >> obp-api/src/main/resources/props/test.default.props
|
||||
MAVEN_OPTS="-Xmx3G -Xss2m" mvn clean package -Pprod
|
||||
|
||||
- name: Upload test reports
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: test-reports
|
||||
if-no-files-found: ignore
|
||||
path: |
|
||||
obp-api/target/surefire-reports/**
|
||||
obp-commons/target/surefire-reports/**
|
||||
|
||||
- name: Test report summary
|
||||
if: always()
|
||||
uses: dorny/test-reporter@v1
|
||||
with:
|
||||
name: ScalaTest
|
||||
path: |
|
||||
obp-api/target/surefire-reports/*.xml
|
||||
obp-commons/target/surefire-reports/*.xml
|
||||
reporter: java-junit
|
||||
fail-on-error: false
|
||||
fail-on-empty: false
|
||||
|
||||
- name: Save .war artifact
|
||||
run: |
|
||||
mkdir -p ./pull
|
||||
|
||||
Loading…
Reference in New Issue
Block a user