You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2022/11/14 18:54:31 UTC

[incubator-pekko-persistence-jdbc] branch main updated: upgrade cache-action (#2)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-persistence-jdbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d0cb56  upgrade cache-action (#2)
9d0cb56 is described below

commit 9d0cb56b59a92609246758025fad4e4bb10174d0
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Mon Nov 14 19:54:26 2022 +0100

    upgrade cache-action (#2)
    
    * upgrade cache-action
    
    * build issue due to lack of tags in git repo
    
    * scala version to match build.sbt
    
    * Update link-validator.yml
    
    * reformat build.sbt
---
 .github/workflows/checks.yml            | 6 +++---
 .github/workflows/h2-test.yml           | 2 +-
 .github/workflows/link-validator.yml    | 7 ++++---
 .github/workflows/mysql-tests.yml       | 4 ++--
 .github/workflows/oracle-tests.yml      | 4 ++--
 .github/workflows/postgres-tests.yml    | 4 ++--
 .github/workflows/release.yml           | 4 ++--
 .github/workflows/snapshot-release.yaml | 2 +-
 .github/workflows/sqlserver-tests.yml   | 4 ++--
 build.sbt                               | 8 +++-----
 project/build.properties                | 2 +-
 11 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 8ff4fea..24d6afd 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -31,7 +31,7 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Code style check and binary-compatibility check
         # Run locally with: sbt 'verifyCodeStyle ; mimaReportBinaryIssues'
@@ -58,7 +58,7 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Compile all code with fatal warnings for Java 11, Scala 2.12 and Scala 2.13
         # Run locally with: sbt 'clean ; +Test/compile ; +It/compile'
@@ -85,7 +85,7 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Create all API docs for artifacts/website and all reference docs
         run: sbt docs/paradox
diff --git a/.github/workflows/h2-test.yml b/.github/workflows/h2-test.yml
index 2d478e1..9314068 100644
--- a/.github/workflows/h2-test.yml
+++ b/.github/workflows/h2-test.yml
@@ -38,7 +38,7 @@ jobs:
           java-version: ${{ matrix.java-version }}
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }}
         run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }}
diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml
index 7e845a6..7d142bd 100644
--- a/.github/workflows/link-validator.yml
+++ b/.github/workflows/link-validator.yml
@@ -16,8 +16,9 @@ jobs:
           ref: ${{ github.event.pull_request.head.sha }}
           fetch-depth: 100
 
-      - name: Fetch tags
-        run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
+      # temporarily disable tag fetch (there are no tags right now and this then fails)
+      # - name: Fetch tags
+      #  run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
 
       - name: Set up JDK 11
         uses: olafurpg/setup-scala@v10
@@ -25,7 +26,7 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: sbt site
         run: sbt docs/makeSite
diff --git a/.github/workflows/mysql-tests.yml b/.github/workflows/mysql-tests.yml
index 6ba236b..3888892 100644
--- a/.github/workflows/mysql-tests.yml
+++ b/.github/workflows/mysql-tests.yml
@@ -37,13 +37,13 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Start docker
         run: ./scripts/launch-mysql.sh
 
       - name: Run Integration tests for  ${{ matrix.name }}
-        run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.MySQL*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
+        run: sbt "++2.13.8 It/testOnly akka.persistence.jdbc.integration.MySQL*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
 
       - name: Print logs on failure
         if: ${{ failure() }}
diff --git a/.github/workflows/oracle-tests.yml b/.github/workflows/oracle-tests.yml
index 89f2a44..d7c8a6a 100644
--- a/.github/workflows/oracle-tests.yml
+++ b/.github/workflows/oracle-tests.yml
@@ -37,13 +37,13 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Start docker
         run: ./scripts/launch-oracle.sh
 
       - name: Run Integration tests for  ${{ matrix.name }}
-        run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.Oracle*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
+        run: sbt "++2.13.8 It/testOnly akka.persistence.jdbc.integration.Oracle*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
 
       - name: Print logs on failure
         if: ${{ failure() }}
diff --git a/.github/workflows/postgres-tests.yml b/.github/workflows/postgres-tests.yml
index b3e7bde..43a4e44 100644
--- a/.github/workflows/postgres-tests.yml
+++ b/.github/workflows/postgres-tests.yml
@@ -37,13 +37,13 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Start docker
         run: ./scripts/launch-postgres.sh
 
       - name: Run Integration tests for  ${{ matrix.name }}
-        run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.Postgres*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
+        run: sbt "++2.13.8 It/testOnly akka.persistence.jdbc.integration.Postgres*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
 
       - name: Print logs on failure
         if: ${{ failure() }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5cd1734..5fc2b9d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -32,7 +32,7 @@ jobs:
         uses: olafurpg/setup-scala@v10
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Publish artifacts for all Scala versions
         env:
@@ -51,4 +51,4 @@ jobs:
           chmod 600 .github/id_rsa
           ssh-keygen -p -P "$GUSTAV_PASSPHRASE" -N "" -f .github/id_rsa
           ssh-add .github/id_rsa
-          sbt "++2.13.4 docs/publishRsync"
+          sbt "++2.13.8 docs/publishRsync"
diff --git a/.github/workflows/snapshot-release.yaml b/.github/workflows/snapshot-release.yaml
index a8942ca..7d68619 100644
--- a/.github/workflows/snapshot-release.yaml
+++ b/.github/workflows/snapshot-release.yaml
@@ -32,7 +32,7 @@ jobs:
         uses: olafurpg/setup-scala@v10
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Publish artifacts for all Scala versions
         env:
diff --git a/.github/workflows/sqlserver-tests.yml b/.github/workflows/sqlserver-tests.yml
index 46681ad..114fd42 100644
--- a/.github/workflows/sqlserver-tests.yml
+++ b/.github/workflows/sqlserver-tests.yml
@@ -37,13 +37,13 @@ jobs:
           java-version: adopt@1.11.0-11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v5
+        uses: coursier/cache-action@v6.4.0
 
       - name: Start docker
         run: ./scripts/launch-sqlserver.sh
 
       - name: Run Integration tests for  ${{ matrix.name }}
-        run: sbt "++2.13.4 It/testOnly akka.persistence.jdbc.integration.SqlServer*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
+        run: sbt "++2.13.8 It/testOnly akka.persistence.jdbc.integration.SqlServer*"  ${{ matrix.extraOpts }} -J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler
 
       - name: Print logs on failure
         if: ${{ failure() }}
diff --git a/build.sbt b/build.sbt
index 3747c2d..ea632df 100644
--- a/build.sbt
+++ b/build.sbt
@@ -20,9 +20,8 @@ lazy val core = project
     name := "akka-persistence-jdbc",
     libraryDependencies ++= Dependencies.Libraries,
     mimaReportSignatureProblems := true,
-    mimaPreviousArtifacts := Set(
-      organization.value %% name.value % previousStableVersion.value.getOrElse(
-        throw new Error("Unable to determine previous version for MiMa"))))
+    // temporarily disable mima checks
+    mimaPreviousArtifacts := Set.empty)
 
 lazy val migrator = project
   .in(file("migrator"))
@@ -77,8 +76,7 @@ lazy val docs = project
 Global / onLoad := (Global / onLoad).value.andThen { s =>
   val v = version.value
   if (dynverGitDescribeOutput.value.hasNoTags)
-    throw new MessageOnlyException(
-      s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Derived version: $v")
+    sLog.value.warn(s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Derived version: $v")
   s
 }
 
diff --git a/project/build.properties b/project/build.properties
index 6f54da4..c9fa4e1 100644
--- a/project/build.properties
+++ b/project/build.properties
@@ -13,4 +13,4 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-sbt.version=1.6.2
+sbt.version=1.8.0


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org