Skip to content

Commit

Permalink
Scala 3 (#261)
Browse files Browse the repository at this point in the history
* Add Scala 3

* Only check coverage on 2.13
  • Loading branch information
travisbrown authored May 31, 2021
1 parent ea88e57 commit 7bc021e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.14, 2.13.6]
scala: [2.12.14, 2.13.6, 3.0.0]
java: [[email protected]]
runs-on: ${{ matrix.os }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ val scalaTestPlusVersion = "3.2.9.0"
val scala212 = "2.12.14"
val scala213 = "2.13.6"

ThisBuild / crossScalaVersions := Seq(scala212, scala213)
ThisBuild / crossScalaVersions := Seq(scala212, scala213, "3.0.0")

def priorTo2_13(scalaVersion: String): Boolean =
CrossVersion.partialVersion(scalaVersion) match {
Expand Down Expand Up @@ -52,7 +52,7 @@ val baseSettings = Seq(
_.filterNot(Set("-Ywarn-unused-import"))
},
coverageHighlighting := true,
coverageEnabled := (if (priorTo2_13(scalaVersion.value)) coverageEnabled.value else false),
coverageEnabled := (if (scalaVersion.value.startsWith("2.13")) coverageEnabled.value else false),
(scalastyleSources in Compile) ++= (unmanagedSourceDirectories in Compile).value
)

Expand Down

0 comments on commit 7bc021e

Please sign in to comment.