Skip to content

Commit

Permalink
Github CI to check java code format. (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoKrupitza committed Dec 29, 2021
1 parent e2dfe21 commit 9fb6dee
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -9,6 +9,23 @@ on:
- develop
- master
jobs:
code-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache Maven
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Check formatting
run: ./mvnw formatter:validate
build:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 9fb6dee

Please sign in to comment.