Skip to content

Commit ee5af21

Browse files
authored
Merge pull request #227 from secure-software-engineering/ci/handledependabot
update java runtime version in stylecheck ci
2 parents 50b1548 + 020c347 commit ee5af21

File tree

3 files changed

+27
-51
lines changed

3 files changed

+27
-51
lines changed

.github/workflows/dependency_analysis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/formalities.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

.github/workflows/style.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)