-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate codestyle in a standalone workflow as it's done in EHRbase
- Loading branch information
Showing
3 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Codestyle" | ||
|
||
# we have multiple workflows - this helps to distinguish for them | ||
run-name: "${{ github.event.pull_request.title || github.head_ref }} - Codestyle" | ||
|
||
on: | ||
push: | ||
branches: [ develop, release/* ] | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
# | ||
# Style-check it's a dedicated workflow. This allows us to open a PR, run all tests and fix styling issue later ;). | ||
# | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
cache: 'maven' | ||
|
||
- name: Spotless | ||
run: mvn spotless:check |