This is an automated email from the ASF dual-hosted git repository.
He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-dynamodb.git
The following commit(s) were added to refs/heads/main by this push:
new cb37087 chore: unify formatter config - standardize aliases, add
JDK17 setting (#310)
cb37087 is described below
commit cb37087186bc1720ed6777b387ff95d9c8c8bc15
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Sun Jun 14 21:12:13 2026 +0800
chore: unify formatter config - standardize aliases, add JDK17 setting
(#310)
* chore: unify formatter config across pekko sub-projects
Motivation:
Align formatter plugins, command aliases, and JDK settings with other
pekko sub-projects to reduce maintenance burden.
Modification:
- Standardize checkCodeStyle/applyCodeStyle command aliases
- Add ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 where missing
- Replace custom verifyCodeFmt tasks with standard aliases where applicable
- Upgrade sbt-java-formatter plugin where needed
Result:
Consistent formatter configuration across all pekko sub-projects.
Tests:
Not run - build config change only
References:
None - formatter unification across pekko sub-projects
* 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]