58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: Build Akka with Scala 3
|
|
|
|
on:
|
|
pull_request:
|
|
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-cluster/Test/compile akka-cluster-tools/test akka-distributed-data/test
|
|
- akka-coordination/test
|
|
- akka-discovery/test
|
|
- akka-persistence/test akka-persistence-shared/test akka-persistence-query/test
|
|
- akka-pki/test
|
|
- akka-serialization-jackson/test
|
|
- akka-slf4j/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
|
|
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=performance,timing,long-running,gh-exclude \
|
|
${{ matrix.command }}
|