From f553e59ef147a489c7acf69f684f0b6355d675ac Mon Sep 17 00:00:00 2001 From: Sebastian Arellanes Date: Tue, 3 Sep 2024 19:25:33 -0700 Subject: [PATCH] Print xml files from test-reports --- .github/workflows/pull_request.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index a560a9fd..eafe4b0f 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -41,6 +41,19 @@ jobs: - name: Run test admin controller run: CI=true sbt "testOnly controllers.AdminControllerSpec" + - name: Print test results + run: | + # Find all XML files in the target/test-reports directory + for file in server/target/test-reports/*.xml; do + if [ -f "$file" ]; then + echo "Contents of $file:" + cat "$file" + echo + else + echo "No XML files found." + fi + done + # TODO uncomment when tests are added # - name: Check code format # run: sbt scalafmtCheckAll