diff --git a/.github/workflows/test-and-build-workflow.yml b/.github/workflows/test-and-build-workflow.yml index f8d9bd682..46a8f8294 100644 --- a/.github/workflows/test-and-build-workflow.yml +++ b/.github/workflows/test-and-build-workflow.yml @@ -27,3 +27,10 @@ jobs: - name: Integ Test run: sbt integtest/integration + + - name: Upload test report + if: always() # Ensures the artifact is saved even if tests fail + uses: actions/upload-artifact@v3 + with: + name: test-reports + path: target/test-reports # Adjust this path if necessary \ No newline at end of file diff --git a/build.sbt b/build.sbt index 8752d3bf9..f5a6817d6 100644 --- a/build.sbt +++ b/build.sbt @@ -53,7 +53,9 @@ lazy val commonSettings = Seq( compileScalastyle := (Compile / scalastyle).toTask("").value, Compile / compile := ((Compile / compile) dependsOn compileScalastyle).value, testScalastyle := (Test / scalastyle).toTask("").value, + Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/test-reports"), Test / test := ((Test / test) dependsOn testScalastyle).value, + libraryDependencies += "com.vladsch.flexmark" % "flexmark-all" % "0.64.8", dependencyOverrides ++= Seq( "com.fasterxml.jackson.core" % "jackson-core" % jacksonVersion, "com.fasterxml.jackson.core" % "jackson-databind" % jacksonVersion