Skip to content

Commit 58e3997

Browse files
authored
Merge pull request #329 from evolution-gaming/feature/sbt-version-policy
Migrate to sbt-version-policy Also: - updated release action to v4 - harmonized ci action with other Evo OSS projects
2 parents 9633360 + eaae6d5 commit 58e3997

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: setup SBT
3030
uses: sbt/setup-sbt@v1
3131

32+
- name: check code ${{ matrix.scala }}
33+
run: sbt ++${{ matrix.scala }} clean check
34+
3235
- name: build ${{ matrix.scala }}
3336
run: sbt ++${{ matrix.scala }} clean coverage test
3437

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ on:
77

88
jobs:
99
release:
10-
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v3
10+
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v4
1111
secrets: inherit

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ lazy val commonSettings = Seq(
1717
startYear := Some(2019),
1818
organizationName := "Evolution",
1919
organizationHomepage := Some(url("https://evolution.com")),
20+
versionPolicyIntention := Compatibility.BinaryCompatible,
2021
scalaVersion := crossScalaVersions.value.head,
2122
crossScalaVersions := Seq("2.13.16", "3.3.5"),
2223
publishTo := Some(Resolver.evolutionReleases),
2324
licenses := Seq(("MIT", url("https://opensource.org/licenses/MIT"))),
2425
Compile / doc / scalacOptions += "-no-link-warnings")
2526

2627
val alias: Seq[sbt.Def.Setting[?]] =
27-
// addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
28-
addCommandAlias("check", "show version") ++
28+
addCommandAlias("check", "all versionPolicyCheck Compile/doc") ++
2929
addCommandAlias("build", "+all compile test")
3030

3131
lazy val root = (project

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.15")
44

55
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0")
66

7+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")
8+
79
addSbtPlugin("com.evolution" % "sbt-scalac-opts-plugin" % "0.0.9")
810

911
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")

0 commit comments

Comments
 (0)