diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d52cd46..89abe17 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,10 +39,17 @@ jobs: # that runs does so against the fake UDS herdr and fake ccs/claude stubs. run: mvn -B clean install - - name: Publish test report - if: always() - uses: actions/upload-artifact@v4 - with: - name: surefire-reports - path: bridged/target/surefire-reports/ - if-no-files-found: warn + # Deliberately NOT actions/upload-artifact: this Gitea instance presents as GHES, and + # @actions/artifact v2+ (i.e. upload-artifact@v4) refuses to run there — + # "GHESNotSupportedError ... not currently supported on GHES", which red-Xes an otherwise + # green build. Since the artifact could not be retrieved anyway, dump the failing tests into + # the log instead, where they are actually readable. + - name: Failing test output + if: failure() + working-directory: bridged + run: | + for f in target/surefire-reports/*.txt; do + [ -f "$f" ] || continue + grep -qE "Failures: [1-9]|Errors: [1-9]" "$f" && { echo "===== $f ====="; cat "$f"; } + done + exit 0