build: add checkstyle configuration and workflow jobs
All checks were successful
Quality Check / Gradle Check (pull_request) Successful in 4m19s

This commit is contained in:
Jan K9f 2024-09-25 10:34:06 +02:00
parent 7fc19b5bbe
commit 37c9a466d5
Signed by: jank
GPG key ID: B267751B8AE29EFE
7 changed files with 77 additions and 5 deletions

View file

@ -4,7 +4,7 @@ on:
- pull_request
jobs:
oas:
test:
name: "Gradle Check"
runs-on: "ubuntu-latest"
container:
@ -25,4 +25,26 @@ jobs:
- name: "Check"
run: gradle check
- name: "Stop Gradle"
run: gradle --stop
run: gradle --stop
checkstyle:
name: "Gradle Check"
runs-on: "ubuntu-latest"
container:
image: "cimg/openjdk:21.0-node"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Check"
run: gradle check
- name: "Stop Gradle"
run: gradle --stop