Skip to content

Commit

Permalink
Verify ce2 examples in the build
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Dec 19, 2024
1 parent 4d5df93 commit dba1de6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ jobs:
- name: Verify that examples compile using Scala CLI
if: matrix.target-platform == 'JVM' && matrix.java == '21' && matrix.scala-version == '3'
run: sbt $SBT_JAVA_OPTS -v "project examples3" verifyExamplesCompileUsingScalaCli
- name: Verify that examples-ce2 compile using Scala CLI
if: matrix.target-platform == 'JVM' && matrix.java == '11' && matrix.scala-version == '2.13'
run: sbt $SBT_JAVA_OPTS -v "project examplesCe2" verifyExamplesCompileUsingScalaCli
- name: Test
run: sbt -v "testScoped ${{ matrix.scala-version }} ${{ matrix.target-platform }}"
- name: Prepare release notes
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,8 @@ lazy val examplesCe2 = (projectMatrix in file("examples-ce2"))
publish / skip := true,
libraryDependencies ++= Seq(
"io.circe" %% "circe-generic" % circeVersion
)
),
verifyExamplesCompileUsingScalaCli := VerifyExamplesCompileUsingScalaCli(sLog.value, sourceDirectory.value)
)
.jvmPlatform(scalaVersions = List(scala2_13))
.dependsOn(circe, monix)
Expand Down

0 comments on commit dba1de6

Please sign in to comment.