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

He-Pin pushed a commit to branch unify-formatter-config
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-dynamodb.git

commit e75b83c5d52083ecbb81e2937843e721459a52e5
Author: 虎鸣 <[email protected]>
AuthorDate: Sun Jun 14 20:40:29 2026 +0800

    fix: add check-code-style job to CI
    
    Motivation:
    The CI workflow had no code style validation. Formatter checks
    (scalafmt, javafmt, headers) were not enforced.
    
    Modification:
    Add a check-code-style job that runs sbt checkCodeStyle, following
    the same pattern as pekko-persistence-jdbc.
    
    Result:
    CI now validates code style (scalafmt + javafmt + headers) on every PR.
---
 .github/workflows/check-build-test.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.github/workflows/check-build-test.yml 
b/.github/workflows/check-build-test.yml
index bc37af1..52907c0 100644
--- a/.github/workflows/check-build-test.yml
+++ b/.github/workflows/check-build-test.yml
@@ -11,6 +11,37 @@ on:
     tags-ignore: [ v.* ]
 
 jobs:
+  check-code-style:
+    name: Check Code Style
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # 
v6.0.3
+        with:
+          fetch-depth: 0
+          fetch-tags: true
+
+      - name: Checkout GitHub merge
+        if: github.event.pull_request
+        run: |-
+          git fetch origin pull/${{ github.event.pull_request.number 
}}/merge:scratch
+          git checkout scratch
+
+      - name: Setup Java 17
+        uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 
v5.2.0
+        with:
+          distribution: temurin
+          java-version: 17
+
+      - name: Install sbt
+        uses: sbt/setup-sbt@af116cce31c00823d3903ce687f9cda3a4f19f1b # v1.2.1
+
+      - name: Cache Coursier cache
+        uses: coursier/cache-action@95e5b1029b6b86e7bac033ee44a0697d8a527d2d # 
v8.1.1
+
+      - name: Code style check
+        run: sbt checkCodeStyle
+
   check-code-compilation:
     name: Check Code Compilation
     runs-on: ubuntu-latest


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

Reply via email to