2024-09-25 07:36:33 +00:00
|
|
|
name: "Quality Check"
|
|
|
|
|
|
|
|
on:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
2024-09-25 08:34:06 +00:00
|
|
|
test:
|
2024-09-25 07:36:33 +00:00
|
|
|
name: "Gradle Check"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-09-25 07:40:55 +00:00
|
|
|
image: "cimg/openjdk:21.0-node"
|
2024-09-25 07:36:33 +00:00
|
|
|
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"
|
2024-09-25 08:34:06 +00:00
|
|
|
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
|