You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by jr...@apache.org on 2023/02/14 12:36:46 UTC
[incubator-pekko-http] branch main updated: run nightly test matrix against pekko versions (#46)
This is an automated email from the ASF dual-hosted git repository.
jrudolph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new e73309b56 run nightly test matrix against pekko versions (#46)
e73309b56 is described below
commit e73309b566ab4d0ee56231148ebbca03ba7b4028
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Tue Feb 14 13:36:41 2023 +0100
run nightly test matrix against pekko versions (#46)
---
.github/workflows/nightly.yml | 14 +++++---------
build.sbt | 2 +-
project/PekkoDependency.scala | 6 +++---
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index be6d8d030..c20be4f5c 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -15,11 +15,7 @@ jobs:
matrix:
SCALA_VERSION: [2.12, 2.13]
JABBA_JDK: [8, 11, 17]
- AKKA_VERSION: [master, default, 2.6.18]
- exclude:
- # 2.5 is not compatible with JDK 17
- - JABBA_JDK: 17
- AKKA_VERSION: default
+ PEKKO_VERSION: [default]
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -43,14 +39,14 @@ jobs:
key: build-target-${{ hashFiles('**/*.sbt', 'project/build.properties', 'project/**/*.scala') }}
- name: Compile everything
- run: sbt -Dakka.http.build.akka.version=${{ matrix.AKKA_VERSION }} ++${{ matrix.SCALA_VERSION }} Test/compile
+ run: sbt -Dakka.http.build.akka.version=${{ matrix.PEKKO_VERSION }} ++${{ matrix.SCALA_VERSION }} Test/compile
- - name: Run all tests JDK ${{ matrix.JABBA_JDK }}, Scala ${{ matrix.SCALA_VERSION }}, Akka ${{ matrix.AKKA_VERSION }}
- run: sbt -Dakka.http.parallelExecution=false -Dakka.test.timefactor=2 -Dakka.http.build.akka.version=${{ matrix.AKKA_VERSION }} ++${{ matrix.SCALA_VERSION }} mimaReportBinaryIssues test
+ - name: Run all tests JDK ${{ matrix.JABBA_JDK }}, Scala ${{ matrix.SCALA_VERSION }}, Akka ${{ matrix.PEKKO_VERSION }}
+ run: sbt -Dakka.http.parallelExecution=false -Dakka.test.timefactor=2 -Dakka.http.build.akka.version=${{ matrix.PEKKO_VERSION }} ++${{ matrix.SCALA_VERSION }} mimaReportBinaryIssues test
- name: Upload test results
uses: actions/upload-artifact@v2 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
- name: test-results-${{ matrix.JABBA_JDK }}-${{ matrix.SCALA_VERSION }}-${{ matrix.AKKA_VERSION }}
+ name: test-results-${{ matrix.JABBA_JDK }}-${{ matrix.SCALA_VERSION }}-${{ matrix.PEKKO_VERSION }}
path: '**/target/test-reports/*.xml'
diff --git a/build.sbt b/build.sbt
index 61d94d360..a92452d94 100644
--- a/build.sbt
+++ b/build.sbt
@@ -148,7 +148,7 @@ lazy val httpCore = project("http-core")
"pekko-stream-testkit",
"test",
pekko =
- if (System.getProperty("pekko.http.test-against-pekko-main", "false") == "true") PekkoDependency.masterSnapshot
+ if (System.getProperty("pekko.http.test-against-pekko-main", "false") == "true") PekkoDependency.mainSnapshot
else PekkoDependency.default)
.settings(Dependencies.httpCore)
.settings(VersionGenerator.versionSettings)
diff --git a/project/PekkoDependency.scala b/project/PekkoDependency.scala
index 3759ccb7e..c98c21236 100644
--- a/project/PekkoDependency.scala
+++ b/project/PekkoDependency.scala
@@ -30,7 +30,7 @@ object PekkoDependency {
Sources(pekkoSources)
case None =>
Option(System.getProperty("pekko.http.build.pekko.version")) match {
- case Some("master") => masterSnapshot
+ case Some("main") => mainSnapshot
case Some("release-1.0") =>
// Don't 'downgrade' building even if pekko.sources asks for it
// (typically for the docs that require 2.6)
@@ -40,7 +40,7 @@ object PekkoDependency {
case Some(other) => Artifact(other, true)
case None =>
// TODO: Revert to Artifact(defaultVersion) when release of Pekko is made
- Artifact(determineLatestSnapshot("0.0.0"), true)
+ mainSnapshot
}
}
}
@@ -51,7 +51,7 @@ object PekkoDependency {
val minimumExpectedPekko26Version = "1.0.0"
val docs = pekkoDependency(defaultVersion = minimumExpectedPekko26Version)
- lazy val masterSnapshot = Artifact(determineLatestSnapshot(), true)
+ lazy val mainSnapshot = Artifact(determineLatestSnapshot("0.0.0"), true)
val pekkoVersion: String = default match {
case Artifact(version, _) => version
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org