From 666568354232fa3c957cf0dbb72aa26e7fb92efd Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Thu, 21 Oct 2021 10:14:38 -0700 Subject: [PATCH] Add action-junit-report (#1889) * Add action-junit-report * Fix indentation --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 875af568d4..d1193d3430 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,6 +38,11 @@ jobs: java-version: zulu@1.11 - name: Scala 2.12 test run: ./sbt ++2.12.15 projectJVM/test + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml' test_2_13: name: Scala 2.13 runs-on: ubuntu-latest @@ -48,6 +53,11 @@ jobs: java-version: zulu@1.11 - name: Scala 2.13 test run: ./sbt projectJVM/test + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml' test_2_13_lastet_jdk: name: Scala 2.13 + JDK17 runs-on: ubuntu-latest @@ -58,6 +68,11 @@ jobs: java-version: zulu@1.17 - name: Scala 2.13 + JDK17 test run: ./sbt projectJVM/test + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml' test_3: name: Scala 3.x (Dotty) runs-on: ubuntu-latest @@ -69,6 +84,11 @@ jobs: - name: Scala 3.x test # Only use a limited number of tests until AirSpec and DI can support Scala 3 run: DOTTY=true ./sbt "projectDotty/compile; dottyTest/run" + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml' test_js: name: Scala.js / Scala 2.12 runs-on: ubuntu-latest @@ -84,6 +104,11 @@ jobs: run: npm install jsdom@16.4.0 - name: Scala.js test run: JVM_OPTS=-Xmx4g ./sbt "; projectJS/test" + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml' test_js_2_13: name: Scala.js / Scala 2.13 runs-on: ubuntu-latest @@ -99,3 +124,8 @@ jobs: run: npm install jsdom@16.4.0 - name: Scala.js test run: JVM_OPTS=-Xmx4g ./sbt ++2.13.6 "; projectJS/test" + - name: Publish Test Report + uses: mikepenz/action-junit-report@v2 + if: always() # always run even if the previous step fails + with: + report_paths: '**/target/test-reports/TEST-*.xml'