-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mercury): Add plugin sbt-scoverage (#133)
Update scala version to 3.2.1 and/or 3.2.2-RC1-bin-20221026-a210b7f-NIGHTLY Add plugin sbt-scoverage (version 2.0.6) Update sbt-native-packager version to 1.9.11 Enable plugins if certain environment variables are define Add env to the github workflaws ci(mercury): add code coverage report publishing ci(mercury): test another action for coverage ci(mercury): add min coverage as 10 for now ci(mercury): set min to 1% for now ci(mercury): dont fail ci if coverage is less than min Co-authored-by: Anton Baliasnikov <anton.baliasnikov@iohk.io>
- Loading branch information
1 parent
93b33a8
commit fcaaeda
Showing
4 changed files
with
68 additions
and
15 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
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,4 +1,25 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") | ||
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") | ||
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.9") // TODO DO NOT USE 1.9.10 or 1.9.11 | ||
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3") | ||
|
||
// USE> GITHUB_TOKEN=??? SBT_PACKAGER=enable sbt publish | ||
new sbt.Def.SettingList( | ||
sys.env | ||
.get("SBT_PACKAGER") | ||
.map { _ => | ||
println("### Enable sbt-native-packager ###") | ||
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.11") | ||
} | ||
.toSeq | ||
) | ||
|
||
// USE> SBT_SCOVERAGE=enable sbt clean coverage test coverageAggregate | ||
new sbt.Def.SettingList( | ||
sys.env | ||
.get("SBT_SCOVERAGE") // SEE also build.sbt | ||
.map { _ => | ||
println("### Enable sbt-scoverage ###") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.6") // Needs scala version 3.2.2 | ||
} | ||
.toSeq | ||
) |