Skip to content

Commit

Permalink
Add action-junit-report (#1889)
Browse files Browse the repository at this point in the history
* Add action-junit-report

* Fix indentation
  • Loading branch information
xerial committed Oct 21, 2021
1 parent f88437c commit 6665683
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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'

0 comments on commit 6665683

Please sign in to comment.