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 29
29
~/.cache/coursier
30
30
key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
31
31
32
- - name : Set up JDK 1.8
32
+ - name : Set up JDK
33
33
uses : actions/setup-java@v1
34
34
with :
35
35
java-version : ${{ matrix.java }}
39
39
40
40
- name : Run tests
41
41
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"))
118
118
.dependsOn(cucumberScala % Test )
119
119
.jvmPlatform(scalaVersions = Seq (scala213, scala212))
120
120
121
+ // Version policy check
122
+
123
+ ThisBuild / versionScheme := Some (" early-semver" )
124
+ ThisBuild / versionPolicyIntention := Compatibility .BinaryAndSourceCompatible
125
+
121
126
// Release & Publish
122
127
123
128
Global / 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")
4
4
// Scalafmt (formatter)
5
5
addSbtPlugin(" org.scalameta" % " sbt-scalafmt" % " 2.4.2" )
6
6
7
+ // Version policy check
8
+ addSbtPlugin(" ch.epfl.scala" % " sbt-version-policy" % " 1.0.0-RC5" )
9
+
7
10
// Release
8
11
addSbtPlugin(" com.github.gseitz" % " sbt-release" % " 1.0.13" )
9
12
You can’t perform that action at this time.
0 commit comments