Skip to content

Commit

Permalink
Temporarily call JS tests for each subproject explicitly
Browse files Browse the repository at this point in the history
Workaround until scala-js/scala-js#4317 has a solution
  • Loading branch information
sbrunk committed Dec 6, 2020
1 parent 419f891 commit 0b00138
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
matrix:
target-platform: [ "JVM", "JS" ]
env:
JAVA_OPTS: -Xmx4G
JAVA_OPTS: -Xmx5G
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -29,7 +29,15 @@ jobs:
- name: Compile
run: sbt -v compile compileDocumentation
- name: Test
if: matrix.target-platform != 'JS'
run: sbt -v mimaReportBinaryIssues test${{ matrix.target-platform }}
# Temporarily call JS tests for each subproject explicitly as a workaround until
# https://github.com/scala-js/scala-js/issues/4317 has a solution
- name: Test Scala.js
if: matrix.target-platform == 'JS'
run: sbt -v mimaReportBinaryIssues coreJS/test catsJS/test enumeratumJS/test refinedJS/test circeJsonJS/test playJsonJS/test uPickleJsonJS/test jsoniterScalaJS/test sttpClientJS/test
env:
JAVA_OPTS: ${{ matrix.test-heapsize }}
- name: Cleanup
run: |
rm -rf "$HOME/.ivy2/local" || true
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ val downloadGeckoDriverSettings: Seq[Def.Setting[Task[Unit]]] = Seq(
val commonJsSettings = commonSettings ++ downloadGeckoDriverSettings ++ Seq(
// https://github.com/scalaz/scalaz/pull/1734#issuecomment-385627061
scalaJSLinkerConfig ~= {
_.withBatchMode(System.getenv("CONTINUOUS_INTEGRATION") == "true")
_.withBatchMode(System.getenv("GITHUB_ACTIONS") == "true")
},
jsEnv in Test := {
val debugging = false // set to true to help debugging
Expand Down

0 comments on commit 0b00138

Please sign in to comment.