Skip to content

Commit 7210fcd

Browse files
committed
wip
1 parent af2af44 commit 7210fcd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ jobs:
3838
scala: 2.12.15
3939
mode: testScalafmt
4040
platform: jvm
41+
- java: 8
42+
scala: 2.12.15
43+
mode: headerCheck
44+
platform: jvm
4145
- java: 11
4246
scala: 2.12.15
4347
mode: normal
@@ -63,5 +67,3 @@ jobs:
6367
java-version: ${{matrix.java}}
6468
- name: ci
6569
run: sbt ci
66-
- name: headerCheck
67-
run: sbt headerCheck

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ val isScalaNative = sys.env.get("CI_PLATFORM") == Some("native")
298298
val isScalafix = sys.env.get("CI_MODE") == Some("testScalafix")
299299
val isScalafmt = sys.env.get("CI_MODE") == Some("testScalafmt")
300300
val isBinaryCompat = sys.env.get("CI_MODE") == Some("testBinaryCompat")
301+
val isHeaderCheck = sys.env.get("CI_MODE") == Some("headerCheck")
301302
val jdkVersion = sys.env.get("CI_JDK").map(_.toInt)
302303

303304
// required by sbt-scala-module
@@ -316,6 +317,8 @@ inThisBuild {
316317
val toRun: Seq[String] =
317318
if (isScalafmt) {
318319
Seq("scalafmtTest")
320+
else if (isHeaderCheck) {
321+
Seq("headerCheck")
319322
} else {
320323
List(
321324
"CI_SCALA_VERSION",
@@ -373,7 +376,6 @@ inThisBuild {
373376
List(s"$projectPrefix/clean"),
374377
List(s"$testProjectPrefix/test"),
375378
List(s"$projectPrefix/publishLocal"),
376-
List("headerCheck"),
377379
publishTask
378380
).flatten
379381
}

0 commit comments

Comments
 (0)