Only compile with Scala 3 in PR validation (#30731)
* seems to be much more test failures in the Scala 3 job * let's not block PR validation by that, we still have full nightlies with Scala 3
This commit is contained in:
parent
4feac9656b
commit
f021dc9248
2 changed files with 53 additions and 7 deletions
11
.github/workflows/scala3-build.yml
vendored
11
.github/workflows/scala3-build.yml
vendored
|
|
@ -1,7 +1,6 @@
|
|||
name: Build Akka with Scala 3
|
||||
name: Build and test Akka with Scala 3
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
|
||||
|
|
@ -23,12 +22,10 @@ jobs:
|
|||
- 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-coordination/test
|
||||
- akka-discovery/test
|
||||
- akka-discovery/test akka-coordination/test
|
||||
- akka-persistence/test akka-persistence-shared/test akka-persistence-query/test
|
||||
- akka-pki/test
|
||||
- akka-pki/test akka-slf4j/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
|
||||
|
|
@ -56,7 +53,7 @@ jobs:
|
|||
-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 \
|
||||
-Dakka.test.tags.exclude=gh-exclude \
|
||||
-Dmultinode.XX:MetaspaceSize=128M \
|
||||
-Dmultinode.Xms256M \
|
||||
-Dmultinode.Xmx256M \
|
||||
|
|
|
|||
49
.github/workflows/scala3-compile.yml
vendored
Normal file
49
.github/workflows/scala3-compile.yml
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
name: Compile Akka with Scala 3
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
# Only run once for latest commit per ref and cancel other (previous) runs.
|
||||
group: ci-scala3-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
compile:
|
||||
name: Compile
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'akka/akka'
|
||||
strategy:
|
||||
matrix:
|
||||
command:
|
||||
- akka-testkit/Test/compile akka-actor-tests/Test/compile
|
||||
- akka-actor-testkit-typed/Test/compile akka-actor-typed-tests/Test/compile
|
||||
- akka-bench-jmh/Test/compile
|
||||
- akka-cluster/Test/compile akka-cluster-tools/Test/compile akka-cluster-typed/Test/compile akka-distributed-data/Test/compile akka-cluster-metrics/Test/compile akka-cluster-sharding/Test/compile
|
||||
- akka-discovery/Test/compile akka-coordination/Test/compile
|
||||
- akka-persistence/Test/compile akka-persistence-shared/Test/compile akka-persistence-query/Test/compile
|
||||
- akka-pki/Test/compile akka-slf4j/Test/compile
|
||||
- akka-serialization-jackson/Test/compile
|
||||
- akka-stream/Test/compile akka-stream-testkit/Test/compile akka-stream-tests/Test/compile
|
||||
- akka-stream-tests-tck/Test/compile
|
||||
- akka-remote/Test/compile akka-remote-tests/Test/compile akka-protobuf/Test/compile akka-protobuf-v3/Test/compile
|
||||
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 on Scala 3
|
||||
run: |
|
||||
sbt -jvm-opts .jvmopts-ci \
|
||||
-Dakka.build.scalaVersion=3.0 \
|
||||
${{ matrix.command }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue