-
Notifications
You must be signed in to change notification settings - Fork 3
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 #1 from reibitto/improve-balancing
Improve balancing with JUnit reports support
- Loading branch information
Showing
15 changed files
with
306 additions
and
73 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 |
---|---|---|
|
@@ -7,16 +7,20 @@ on: | |
branches: [master, main] | ||
|
||
jobs: | ||
build: | ||
jvm: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scala: [2.12.18] | ||
java: [[email protected], [email protected]] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
- name: Set up environment | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: 11 | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Run tests | ||
run: sbt -Dscalac.unused.enabled=true fmtCheck test | ||
run: sbt ++${{ matrix.scala}} fmtCheck test |
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,18 +1,44 @@ | ||
version = "3.2.1" | ||
version = 3.7.14 | ||
|
||
runner.dialect = scala213 | ||
runner.dialect = scala213source3 | ||
|
||
maxColumn = 120 | ||
align.preset = most | ||
continuationIndent.defnSite = 2 | ||
align = none | ||
maxColumn = 120 # For wide displays. | ||
assumeStandardLibraryStripMargin = true | ||
align.tokens = [{code = "=>", owner = "Case"}, {code = "<-"}] | ||
align.allowOverflow = true | ||
align.arrowEnumeratorGenerator = true | ||
align.openParenCallSite = false | ||
align.openParenDefnSite = false | ||
newlines.topLevelStatementBlankLines = [ | ||
{blanks {before = 1}} | ||
{regex = "^Import|^Term.ApplyInfix"} | ||
] | ||
newlines.alwaysBeforeElseAfterCurlyIf = false | ||
indentOperator.topLevelOnly = true | ||
docstrings.style = SpaceAsterisk | ||
lineEndings = preserve | ||
docstrings.wrapMaxColumn = 80 | ||
|
||
includeCurlyBraceInSelectChains = false | ||
danglingParentheses.preset = true | ||
spaces { | ||
inImportCurlyBraces = true | ||
} | ||
optIn.annotationNewlines = true | ||
includeNoParensInSelectChains = false | ||
|
||
rewrite.rules = [SortModifiers, PreferCurlyFors, SortImports, RedundantBraces] | ||
rewrite.scala3.convertToNewSyntax = true | ||
rewrite.imports.groups = [ | ||
[".*"], | ||
["java\\..*", "javax\\..*", "scala\\..*"] | ||
] | ||
|
||
project.excludeFilters = ["/target/"] | ||
|
||
lineEndings = preserve | ||
|
||
rewrite.rules = [SortImports, RedundantBraces] | ||
fileOverride { | ||
"glob:**/*.sbt" { | ||
runner.dialect = sbt1 | ||
rewrite.scala3.convertToNewSyntax = false | ||
} | ||
"glob:**/project/*.scala" { | ||
rewrite.scala3.convertToNewSyntax = false | ||
} | ||
} |
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,21 +1,25 @@ | ||
import sbtwelcome._ | ||
import sbtwelcome.* | ||
|
||
inThisBuild( | ||
List( | ||
organization := "com.github.reibitto", | ||
homepage := Some(url("https://github.com/reibitto/sbt-test-shards")), | ||
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")), | ||
developers := List( | ||
homepage := Some(url("https://github.com/reibitto/sbt-test-shards")), | ||
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")), | ||
developers := List( | ||
Developer("reibitto", "reibitto", "[email protected]", url("https://reibitto.github.io")) | ||
) | ||
) | ||
) | ||
|
||
lazy val root = (project in file(".")).settings( | ||
name := "sbt-test-shards", | ||
name := "sbt-test-shards", | ||
organization := "com.github.reibitto", | ||
scalaVersion := "2.12.16", | ||
sbtPlugin := true | ||
scalaVersion := "2.12.18", | ||
sbtPlugin := true, | ||
libraryDependencies ++= Seq( | ||
"org.scalameta" %% "munit" % "0.7.29" % Test, | ||
"org.scalameta" %% "munit-scalacheck" % "0.7.29" % Test | ||
) | ||
) | ||
|
||
addCommandAlias("fmt", "all root/scalafmtSbt root/scalafmtAll") | ||
|
@@ -41,9 +45,9 @@ logo := | |
|""".stripMargin | ||
|
||
usefulTasks := Seq( | ||
UsefulTask("a", "~compile", "Compile with file-watch enabled"), | ||
UsefulTask("b", "fmt", "Run scalafmt on the entire project"), | ||
UsefulTask("c", "publishLocal", "Publish the sbt plugin locally so that you can consume it from a different project") | ||
UsefulTask("~compile", "Compile with file-watch enabled"), | ||
UsefulTask("fmt", "Run scalafmt on the entire project"), | ||
UsefulTask("publishLocal", "Publish the sbt plugin locally so that you can consume it from a different project") | ||
) | ||
|
||
logoColor := scala.Console.MAGENTA | ||
|
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.7.1 | ||
sbt.version=1.9.7 |
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,3 +1,5 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") | ||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10") | ||
addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.2.2") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12") | ||
|
||
addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.4.0") |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package sbttestshards | ||
|
||
import java.time.Duration | ||
|
||
final case class ShardingInfo(shardCount: Int, initialDurations: Map[Int, Duration] = Map.empty) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package sbttestshards | ||
|
||
import java.time.Duration | ||
|
||
final case class SpecBucketItem(name: String, timeTaken: Duration) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package sbttestshards | ||
|
||
import java.time.Duration | ||
|
||
final case class SpecInfo(name: String, timeTaken: Option[Duration]) |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.