-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2415 from vasilmkd/scalafix
Update scalafix to the latest version, fix some rules and run the tests in the CI
- Loading branch information
Showing
14 changed files
with
51 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,9 @@ ThisBuild / organizationName := "Functional Streams for Scala" | |
ThisBuild / homepage := Some(url("https://github.com/typelevel/fs2")) | ||
ThisBuild / startYear := Some(2013) | ||
|
||
ThisBuild / crossScalaVersions := Seq("3.0.0", "2.12.14", "2.13.6") | ||
val NewScala = "2.13.6" | ||
|
||
ThisBuild / crossScalaVersions := Seq("3.0.0", "2.12.14", NewScala) | ||
|
||
ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]") | ||
|
||
|
@@ -28,8 +30,13 @@ ThisBuild / spiewakCiReleaseSnapshots := true | |
ThisBuild / spiewakMainBranches := List("main", "series/2.5.x") | ||
|
||
ThisBuild / githubWorkflowBuild := Seq( | ||
WorkflowStep.Sbt(List("fmtCheck", "test", "mimaReportBinaryIssues")) | ||
WorkflowStep.Sbt(List("fmtCheck", "test", "mimaReportBinaryIssues")), | ||
// WorkflowStep.Sbt(List("coreJVM/it:test")) // Memory leak tests fail intermittently on CI | ||
WorkflowStep.Run( | ||
List("cd scalafix", "sbt testCI"), | ||
name = Some("Scalafix tests"), | ||
cond = Some(s"matrix.scala == '$NewScala'") | ||
) | ||
) | ||
|
||
ThisBuild / scmInfo := Some( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.2.6 | ||
sbt.version=1.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
resolvers += Resolver.sonatypeRepo("releases") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.1") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.29") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package fix | ||
|
||
import scalafix.testkit.SemanticRuleSuite | ||
import org.scalatest.FunSuiteLike | ||
import scalafix.testkit.AbstractSemanticRuleSuite | ||
|
||
class RuleSuite extends SemanticRuleSuite() { | ||
class RuleSuite extends AbstractSemanticRuleSuite with FunSuiteLike { | ||
runAllTests() | ||
} |