Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,28 +131,28 @@
annotate_only: true
detailed_summary: true
test_3_latest_jdk:
name: Scala 3 / JDK17
name: Scala 3 / JDK25
runs-on: ubuntu-latest
needs: changes
if: needs.changes.outputs.tests == 'true'
steps:
- uses: actions/checkout@v5
- uses: actions/setup-java@v5
with:
distribution: 'zulu'
java-version: '17'
java-version: '25'
- name: Scala 3 test
# Test only Scala 3 supported projects
run: ./sbt "++ 3; projectDotty/test; dottyTest/run"
- name: Publish Test Report
uses: mikepenz/action-junit-report@v5
if: always() # always run even if the previous step fails
with:
report_paths: '**/target/test-reports/TEST-*.xml'
check_name: Test Report Scala 3 / JDK17
check_name: Test Report Scala 3 / JDK25
annotate_only: true
detailed_summary: true
test_integration:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Scala 3 / Integration Test
runs-on: ubuntu-latest
needs: changes
Expand Down
15 changes: 11 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -1016,11 +1016,18 @@ lazy val parquet =
"org.slf4j" % "slf4j-jdk14" % SLF4J_VERSION % Optional,
"org.apache.parquet" % "parquet-avro" % PARQUET_VERSION % Test
),
// Add Java options to allow security manager for Hadoop/Parquet compatibility with Java 17+
// Add Java options to allow security manager for Hadoop/Parquet compatibility with Java 17-23
// JDK 24+ removed the Security Manager completely
Test / fork := true,
Test / javaOptions ++= Seq(
"-Djava.security.manager=allow"
)
Test / javaOptions ++= {
import scala.util.Try
val javaVersion = Try(System.getProperty("java.version", "1.8")).getOrElse("1.8")
val majorVersion = javaVersion.split("\\.")(0).toInt
if (majorVersion >= 17 && majorVersion < 24)
Seq("-Djava.security.manager=allow")
else
Nil
}
)
.dependsOn(codec.jvm, sql)

Expand Down
Loading