pekko/.github/workflows/scala3-build.yml
Arnout Engelen f12d72effc
Compile akka-cluster-sharding-typed with scala3 (#30738)
* Compile akka-cluster-sharding-typed with scala3

Refs #30243

* Remove unused variable
2021-10-04 12:23:35 +02:00

61 lines
2.1 KiB
YAML

name: Build and test Akka with Scala 3
on:
schedule:
- cron: "0 0 * * *"
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-scala3-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-20.04
if: github.repository == 'akka/akka'
strategy:
matrix:
command:
- akka-testkit/test akka-actor-tests/test
- akka-actor-testkit-typed/test akka-actor-typed-tests/test
- akka-bench-jmh/test
- akka-cluster/Test/compile akka-cluster-tools/test akka-cluster-typed/test akka-distributed-data/test akka-cluster-metrics/Test/compile akka-cluster-sharding/Test/compile akka-cluster-sharding-typed/compile
- akka-discovery/test akka-coordination/test
- akka-persistence/test akka-persistence-shared/test akka-persistence-query/test
- akka-pki/test akka-slf4j/test
- akka-serialization-jackson/test
- akka-stream/test akka-stream-testkit/test akka-stream-tests/test
- akka-stream-tests-tck/test
- akka-remote/test akka-remote-tests/test akka-protobuf/test akka-protobuf-v3/test
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Compile and run tests on Scala 3
# note that this is not running any multi-jvm tests (yet) because multi-in-test=false
run: |
sbt -jvm-opts .jvmopts-ci \
-Dakka.build.scalaVersion=3.0 \
-Dakka.log.timestamps=true \
-Dakka.test.timefactor=2 \
-Dakka.actor.testkit.typed.timefactor=2 \
-Dakka.test.multi-in-test=false \
-Dakka.test.tags.exclude=gh-exclude \
-Dmultinode.XX:MetaspaceSize=128M \
-Dmultinode.Xms256M \
-Dmultinode.Xmx256M \
-Dmultinode.Xlog:gc \
${{ matrix.command }}