-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 984 Bytes
/
backend_checkstyle.yml
File metadata and controls
39 lines (34 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Backend Checkstyle ensures correct style and formatting of the codebase
run-name: Checkstyle
on:
workflow_call:
jobs:
checkstyle:
name: Checkstyle
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'corretto'
- name: Restore Maven Cache
uses: actions/cache/restore@v5
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Checkstyle
run: mvn checkstyle:check
- name: Save Maven Cache
uses: actions/cache/save@v5
if: success()
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}