-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded sbt to 1.6, scala.js to 1.8 and webpack to 5 (#12)
- Loading branch information
1 parent
91fd2ac
commit b340d83
Showing
12 changed files
with
70 additions
and
33 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.class | ||
*.log | ||
package-lock.json | ||
|
||
# sbt specific | ||
.cache | ||
|
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,2 @@ | ||
-J-Xmx2G | ||
-J-XX:+UseG1GC |
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.5.2 | ||
sbt.version = 1.6.2 |
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,11 +1,11 @@ | ||
//resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/" | ||
resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" | ||
|
||
//addSbtPlugin(("org.scommons.sbt" % "sbt-scommons-plugin" % "0.9.0-SNAPSHOT").changing()) | ||
addSbtPlugin("org.scommons.sbt" % "sbt-scommons-plugin" % "0.9.0") | ||
addSbtPlugin(("org.scommons.sbt" % "sbt-scommons-plugin" % "1.0.0-SNAPSHOT").changing()) | ||
//addSbtPlugin("org.scommons.sbt" % "sbt-scommons-plugin" % "0.9.0") | ||
|
||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5") | ||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0") | ||
|
||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.7.3") | ||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.7") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") | ||
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.2") |
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,27 @@ | ||
package definitions | ||
|
||
import org.scoverage.coveralls.CIService | ||
|
||
import scala.io.Source | ||
import scala.util.parsing.json.{JSON, JSONObject} | ||
|
||
case object GitHubActionsCI extends CIService { | ||
val name = "" | ||
val jobId: Option[String] = sys.env.get("GITHUB_RUN_ID") | ||
|
||
// https://github.com/coverallsapp/github-action/blob/master/src/run.ts#L31-L40 | ||
val pullRequest: Option[String] = for { | ||
eventName <- sys.env.get("GITHUB_EVENT_NAME") if eventName.startsWith("pull_request") | ||
payloadPath <- sys.env.get("GITHUB_EVENT_PATH") | ||
source = Source.fromFile(payloadPath, "utf-8") | ||
lines = try source.mkString finally source.close() | ||
payload <- JSON.parseRaw(lines) | ||
prNumber <- payload.asInstanceOf[JSONObject].obj.get("number") | ||
} yield prNumber.toString.stripSuffix(".0") | ||
|
||
// https://docs.github.com/en/actions/learn-github-actions/environment-variables | ||
val currentBranch: Option[String] = pullRequest match { | ||
case Some(_) => sys.env.get("GITHUB_HEAD_REF") | ||
case None => sys.env.get("GITHUB_REF_NAME") | ||
} | ||
} |
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