File tree Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Expand file tree Collapse file tree 4 files changed +40
-2
lines changed Original file line number Diff line number Diff line change 2929 ~/.cache/coursier
3030 key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
3131
32- - name : Set up JDK 1.8
32+ - name : Set up JDK
3333 uses : actions/setup-java@v1
3434 with :
3535 java-version : ${{ matrix.java }}
3939
4040 - name : Run tests
4141 run : sbt +compile +test
42+
43+ versionpolicycheck :
44+ name : Version policy check
45+ strategy :
46+ fail-fast : false
47+ matrix :
48+ os : [ ubuntu-latest ]
49+ java :
50+ - 11
51+ runs-on : ${{ matrix.os }}
52+ steps :
53+
54+ - uses : actions/checkout@v2
55+
56+ - name : Cache sbt
57+ uses : actions/cache@v2
58+ with :
59+ path : |
60+ ~/.sbt
61+ ~/.ivy2/cache
62+ ~/.cache/coursier
63+ key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
64+
65+ - name : Set up JDK
66+ uses : actions/setup-java@v1
67+ with :
68+ java-version : ${{ matrix.java }}
69+
70+ - name : Version check
71+ run : sbt "project cucumberScala" versionPolicyCheck
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ lazy val examples = (projectMatrix in file("examples"))
118118 .dependsOn(cucumberScala % Test )
119119 .jvmPlatform(scalaVersions = Seq (scala213, scala212))
120120
121+ // Version policy check
122+
123+ ThisBuild / versionScheme := Some (" early-semver" )
124+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
125+
121126// Release & Publish
122127
123128Global / publishMavenStyle := true
Original file line number Diff line number Diff line change 1- sbt.version =1.4.5
1+ sbt.version =1.4.7
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.7.0")
44// Scalafmt (formatter)
55addSbtPlugin(" org.scalameta" % " sbt-scalafmt" % " 2.4.2" )
66
7+ // Version policy check
8+ addSbtPlugin(" ch.epfl.scala" % " sbt-version-policy" % " 1.0.0-RC5" )
9+
710// Release
811addSbtPlugin(" com.github.gseitz" % " sbt-release" % " 1.0.13" )
912
You can’t perform that action at this time.
0 commit comments