Merge pull request #272 from CROSSINGTUD/feature/coding-conventions #11
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
name: Style checker | |
description: Check the formatting. Use "mvn spotless:apply" to format the code. | |
on: | |
push: | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
name: Check the style | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
# Restores Maven dependecies | |
- name: Restore local Maven repository | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Run spotless checks | |
run: mvn spotless:check |