fix action's test report generate

This commit is contained in:
A.C.Sukazyo Eyre 2025-02-05 00:41:50 +08:00
parent 97b629100d
commit 03fbfc2ff0
Signed by: Eyre_S
GPG Key ID: EFB47D98FE082FAD

View File

@ -24,15 +24,14 @@ jobs:
uses: sbt/setup-sbt@v1 uses: sbt/setup-sbt@v1
- name: "Run unit tests" - name: "Run unit tests"
id: do-unit-test id: do-unit-test
continue-on-error: true
run: sbt test run: sbt test
- name: "Upload test reports as artifact" - name: "Upload test reports as artifact"
if: steps.do-unit-test.conclusion == 'failure' || steps.do-unit-test.conclusion == 'success'
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: 'unit-test-report' name: 'unit-test-report'
path: ./*/target/test-reports/* path: ./*/target/test-reports/*
- name: "Publish test report to summary" - name: "Publish test report to summary"
if: steps.do-unit-test.conclusion == 'failure' || steps.do-unit-test.conclusion == 'success'
uses: phoenix-actions/test-reporting@v15 uses: phoenix-actions/test-reporting@v15
with: with:
output-to: 'step-summary' output-to: 'step-summary'