Skip to content

Commit dba1de6

Browse files
committed
Verify ce2 examples in the build
1 parent 4d5df93 commit dba1de6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
- name: Verify that examples compile using Scala CLI
6666
if: matrix.target-platform == 'JVM' && matrix.java == '21' && matrix.scala-version == '3'
6767
run: sbt $SBT_JAVA_OPTS -v "project examples3" verifyExamplesCompileUsingScalaCli
68+
- name: Verify that examples-ce2 compile using Scala CLI
69+
if: matrix.target-platform == 'JVM' && matrix.java == '11' && matrix.scala-version == '2.13'
70+
run: sbt $SBT_JAVA_OPTS -v "project examplesCe2" verifyExamplesCompileUsingScalaCli
6871
- name: Test
6972
run: sbt -v "testScoped ${{ matrix.scala-version }} ${{ matrix.target-platform }}"
7073
- name: Prepare release notes

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,8 @@ lazy val examplesCe2 = (projectMatrix in file("examples-ce2"))
953953
publish / skip := true,
954954
libraryDependencies ++= Seq(
955955
"io.circe" %% "circe-generic" % circeVersion
956-
)
956+
),
957+
verifyExamplesCompileUsingScalaCli := VerifyExamplesCompileUsingScalaCli(sLog.value, sourceDirectory.value)
957958
)
958959
.jvmPlatform(scalaVersions = List(scala2_13))
959960
.dependsOn(circe, monix)

0 commit comments

Comments
 (0)