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

mdedetrich 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 c8f907e  Split header check into its own workflow
c8f907e is described below

commit c8f907ea6b08c50246ef1ea76e0ed3279d2221d8
Author: Matthew de Detrich <[email protected]>
AuthorDate: Tue Apr 4 12:56:58 2023 +0200

    Split header check into its own workflow
---
 .github/workflows/checks.yml  |  4 ++--
 .github/workflows/headers.yml | 30 ++++++++++++++++++++++++++++++
 build.sbt                     |  2 --
 3 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 07bb3bd..237d951 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -35,8 +35,8 @@ jobs:
         uses: coursier/[email protected]
 
       - name: Code style check and binary-compatibility check
-        # Run locally with: sbt 'verifyCodeStyle ; mimaReportBinaryIssues'
-        run: sbt "; verifyCodeStyle; mimaReportBinaryIssues"
+        # Run locally with: sbt 'verifyCodeFmt ; mimaReportBinaryIssues'
+        run: sbt "; verifyCodeFmt; mimaReportBinaryIssues"
 
   check-code-compilation:
     name: Check Code Compilation
diff --git a/.github/workflows/headers.yml b/.github/workflows/headers.yml
new file mode 100644
index 0000000..2559d2e
--- /dev/null
+++ b/.github/workflows/headers.yml
@@ -0,0 +1,30 @@
+name: Headers
+
+on:
+  pull_request:
+
+permissions: {}
+
+jobs:
+  check-headers:
+    name: Check headers
+    runs-on: ubuntu-20.04
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+
+      - name: Setup Java 11
+        uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: 11
+
+      - name: Cache Coursier cache
+        uses: coursier/[email protected]
+
+      - name: Check headers
+        run: |-
+          sbt \
+          -Dsbt.override.build.repos=false \
+          -Dsbt.log.noformat=false \
+          +headerCheckAll
diff --git a/build.sbt b/build.sbt
index 37313d2..0761c0f 100644
--- a/build.sbt
+++ b/build.sbt
@@ -98,5 +98,3 @@ TaskKey[Unit]("verifyCodeFmt") := {
       "Unformatted sbt code found. Please run 'scalafmtSbt' and commit the 
reformatted code")
   }
 }
-
-addCommandAlias("verifyCodeStyle", "headerCheckAll; verifyCodeFmt")


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to