Skip to content

Commit

Permalink
Update Scala versions (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii authored Mar 11, 2024
1 parent 1c89d24 commit e03a355
Showing 5 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -168,12 +168,12 @@ In some cases, we may have multiple submodules in our project and we want to tes

The `ciTargetScalaVersions` setting key is used to define a mapping of project names to the Scala versions that should be used for testing phase of continuous integration (CI).

For example, suppose we have a project with the name "submoduleA" and we want to test it against Scala `2.12.18`, and for the "submoduleB" we want to test it against Scala `2.12.18` and `2.13.12` and `3.3.1`, We can define the `ciTargetScalaVersions` setting as follows:
For example, suppose we have a project with the name "submoduleA" and we want to test it against Scala `2.12.19`, and for the "submoduleB" we want to test it against Scala `2.12.19` and `2.13.13` and `3.3.3`, We can define the `ciTargetScalaVersions` setting as follows:

```scala
ThisBuild / ciTargetScalaVersions := Map(
"submoduleA" -> Seq("2.12.18"),
"submoduleB" -> Seq("2.12.18", "2.13.12", "3.3.1")
"submoduleA" -> Seq("2.12.19"),
"submoduleB" -> Seq("2.12.19", "2.13.13", "3.3.3")
)
```

@@ -206,10 +206,10 @@ test:
matrix:
java: ['11', '17', '21']
scala-project:
- ++2.12.18 submoduleA
- ++2.12.18 submoduleB
- ++2.13.12 submoduleB
- ++3.3.1 submoduleB
- ++2.12.19 submoduleA
- ++2.12.19 submoduleB
- ++2.13.13 submoduleB
- ++3.3.3 submoduleB
steps:
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
14 changes: 7 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -167,12 +167,12 @@ In some cases, we may have multiple submodules in our project and we want to tes

The `ciTargetScalaVersions` setting key is used to define a mapping of project names to the Scala versions that should be used for testing phase of continuous integration (CI).

For example, suppose we have a project with the name "submoduleA" and we want to test it against Scala `2.12.18`, and for the "submoduleB" we want to test it against Scala `2.12.18` and `2.13.12` and `3.3.1`, We can define the `ciTargetScalaVersions` setting as follows:
For example, suppose we have a project with the name "submoduleA" and we want to test it against Scala `2.12.19`, and for the "submoduleB" we want to test it against Scala `2.12.19` and `2.13.13` and `3.3.3`, We can define the `ciTargetScalaVersions` setting as follows:

```scala
ThisBuild / ciTargetScalaVersions := Map(
"submoduleA" -> Seq("2.12.18"),
"submoduleB" -> Seq("2.12.18", "2.13.12", "3.3.1")
"submoduleA" -> Seq("2.12.19"),
"submoduleB" -> Seq("2.12.19", "2.13.13", "3.3.3")
)
```

@@ -205,10 +205,10 @@ test:
matrix:
java: ['11', '17', '21']
scala-project:
- ++2.12.18 submoduleA
- ++2.12.18 submoduleB
- ++2.13.12 submoduleB
- ++3.3.1 submoduleB
- ++2.12.19 submoduleA
- ++2.12.19 submoduleB
- ++2.13.13 submoduleB
- ++3.3.3 submoduleB
steps:
- name: Install libuv
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
6 changes: 3 additions & 3 deletions project/Versions.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Versions {
val Scala212 = "2.12.19"
val Scala213 = "2.13.12"
val Scala3 = "3.3.1"
val zio = "2.0.17"
val Scala213 = "2.13.13"
val Scala3 = "3.3.3"
val zio = "2.0.21"
}
6 changes: 3 additions & 3 deletions zio-sbt-ecosystem/src/main/scala/zio/sbt/Versions.scala
Original file line number Diff line number Diff line change
@@ -22,11 +22,11 @@ object Versions {
val KindProjectorVersion = "0.13.3"
val ScaluzziVersion = "0.1.23"

val scala3 = "3.3.1"
val scala3 = "3.3.3"
val scala212 = "2.12.19"
val scala213 = "2.13.12"
val scala213 = "2.13.13"

val zioVersion = "2.0.17"
val zioVersion = "2.0.21"

lazy val betterMonadFor: ModuleID = "com.olegpy" %% "better-monadic-for" % "0.3.1"
}
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
matrix:
java: ['11', '17', '21']
# These version must be different than the versions in V.scala to verify that we are reading from the ci.yml file.
scala: ['2.12.19', '2.13.12', '3.3.1' ]
scala: ['2.12.19', '2.13.13', '3.3.3' ]
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/setup-java@v3.13.0

0 comments on commit e03a355

Please sign in to comment.