2024-09-25 09:15:39 +00:00
|
|
|
name: "Quality Check"
|
|
|
|
|
|
|
|
on:
|
2024-09-25 12:23:02 +00:00
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-09-25 09:15:39 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
name: "Tests"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-10-24 14:01:57 +00:00
|
|
|
image: "cimg/openjdk:21.0.5-node"
|
2024-09-25 09:15:39 +00:00
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
2024-09-25 11:36:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-09-25 10:06:24 +00:00
|
|
|
- uses: actions/cache@v4
|
2024-09-25 09:15:39 +00:00
|
|
|
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"
|
2024-09-25 11:38:31 +00:00
|
|
|
run: gradle test
|
2024-09-25 09:15:39 +00:00
|
|
|
- name: "Stop Gradle"
|
|
|
|
run: gradle --stop
|
|
|
|
checkstyle:
|
|
|
|
name: "Checkstyle Main"
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container:
|
2024-10-24 14:01:57 +00:00
|
|
|
image: "cimg/openjdk:21.0.5-node"
|
2024-09-25 09:15:39 +00:00
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
2024-09-25 11:36:28 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-09-25 10:06:24 +00:00
|
|
|
- uses: actions/cache@v4
|
2024-09-25 09:15:39 +00:00
|
|
|
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"
|
2024-09-25 11:38:31 +00:00
|
|
|
run: gradle checkstyleMain --scan
|
2024-09-25 09:15:39 +00:00
|
|
|
- name: "Stop Gradle"
|
|
|
|
run: gradle --stop
|