File tree Expand file tree Collapse file tree 3 files changed +27
-51
lines changed Expand file tree Collapse file tree 3 files changed +27
-51
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Codestyle etc.
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ check-formatting :
7+ runs-on : ubuntu-latest
8+ name : Check style
9+ steps :
10+ - name : Checkout source code
11+ uses : actions/checkout@v4
12+
13+ - name : Set up Java 11
14+ uses : actions/setup-java@v4
15+ with :
16+ distribution : adopt
17+ java-package : jdk
18+ java-version : 17
19+ cache : maven
20+
21+ # Checks that the code sticks to a common code style
22+ - name : Run spotless checks
23+ run : mvn spotless:check || echo "Check the formatting. Use mvn spotless:apply to format the code."
24+
25+ # Runs Maven's dependency analysis to identify unused and undeclared dependencies and fails the build if there are any warnings.
26+ - name : Run dependency analysis
27+ run : mvn dependency:analyze -DfailOnWarning
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments