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/11 19:42:11 UTC
[incubator-pekko-management] branch main updated: Add github workflow to check scala code is formatted (#5)
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-management.git
The following commit(s) were added to refs/heads/main by this push:
new b103f21 Add github workflow to check scala code is formatted (#5)
b103f21 is described below
commit b103f21e7c23a6cf0c6c81d45b6b6e1fbb0872af
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Fri Nov 11 20:42:07 2022 +0100
Add github workflow to check scala code is formatted (#5)
---
.github/workflows/checks.yml | 4 ++--
.github/workflows/format.yml | 24 ++++++++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 304fd40..b102d43 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -33,8 +33,8 @@ jobs:
- name: Cache Coursier cache
uses: coursier/cache-action@v5
- - name: Code style check, compilation and binary-compatibility check
- run: sbt "scalafmtCheckAll;headerCheckAll;+IntegrationTest/compile;mimaReportBinaryIssues"
+ - name: Compilation and binary-compatibility check
+ run: sbt "headerCheckAll;+IntegrationTest/compile;mimaReportBinaryIssues"
check-docs:
name: Check Docs
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
new file mode 100644
index 0000000..9ce98e5
--- /dev/null
+++ b/.github/workflows/format.yml
@@ -0,0 +1,24 @@
+name: Scalafmt
+
+permissions: read-all
+
+on:
+ pull_request:
+ branches: ['**']
+
+jobs:
+ build:
+ name: Code is formatted
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout current branch (full)
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ persist-credentials: false
+
+ - name: Check project is formatted
+ uses: jrouly/scalafmt-native-action@v2
+ with:
+ version: '3.6.1'
+ arguments: '--list --mode diff-ref=origin/main'
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org