Merge pull request #795 from CROSSINGTUD/master #118
Workflow file for this run
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: Spotless Style Check | |
description: Check the formatting. Use "mvn spotless:apply" to format the code. | |
on: | |
push: | |
branches-ignore: | |
- master | |
- develop | |
jobs: | |
check-formatting: | |
runs-on: ubuntu-latest | |
name: Check style | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
# Set up Java version | |
- name: Set up Java 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-package: jdk | |
java-version: 17 | |
# 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 |