Skip to content

Commit

Permalink
Apply kyri-petrou's fix to skip Scala 2.12.x builds for JS
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinlfer committed May 10, 2024
1 parent cdb1b42 commit a94fc44
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ jobs:
- '11'
- '17'
- '21'
scala-project:
- ++2.12 testJVM
- ++2.13 testJVM
- ++3.3 testJVM
- ++2.13 testJS
- ++3.3 testJS
steps:
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
- name: Setup Scala
uses: actions/setup-java@v4
with:
Expand All @@ -89,7 +93,7 @@ jobs:
with:
fetch-depth: '0'
- name: Test
run: sbt +test
run: sbt ${{ matrix.scala-project }}/test
update-readme:
name: Update README
runs-on: ubuntu-latest
Expand Down
54 changes: 54 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,57 @@ lazy val docs = project
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects()
)
.enablePlugins(WebsitePlugin)

// Temporary, until zio-test issue with ScalaJS 2.12 is resolved
import zio.sbt.githubactions.*
import _root_.io.circe.syntax.*
ThisBuild / ciTestJobs := Seq(
Job(
id = "test",
name = "Test",
runsOn = "ubuntu-latest",
timeoutMinutes = 15,
continueOnError = false,
strategy = Some(
Strategy(
matrix = Map(
"java" -> List("11", "17", "21"),
"scala-project" -> List(
"++2.12 testJVM",
"++2.13 testJVM",
"++3.3 testJVM",
"++2.13 testJS",
"++3.3 testJS"
)
),
failFast = false
)
),
steps = List(
Step.SingleStep(
name = "Setup Scala",
uses = Some(ActionRef("actions/setup-java@v4")),
parameters = Map(
"distribution" -> "corretto".asJson,
"java-version" -> "${{ matrix.java }}".asJson,
"check-latest" -> true.asJson
)
),
Step.SingleStep(
name = "Cache Dependencies",
uses = Some(ActionRef("coursier/cache-action@v6"))
),
Step.SingleStep(
name = "Git Checkout",
uses = Some(ActionRef("actions/checkout@v4")),
parameters = Map(
"fetch-depth" -> "0".asJson
)
),
Step.SingleStep(
name = "Test",
run = Some("sbt ${{ matrix.scala-project }}/test")
)
)
)
)

0 comments on commit a94fc44

Please sign in to comment.