Jan Klattenhoff
77f2b73085
SCRUM-44 #closenot Co-authored-by: Phan Huy Tran <ptran@noreply.localhost> Reviewed-on: #6 Co-authored-by: Jan Klattenhoff <jan@kjan.de> Co-committed-by: Jan Klattenhoff <jan@kjan.de>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: "Quality Check"
|
|
|
|
on:
|
|
- pull_request
|
|
|
|
jobs:
|
|
test:
|
|
name: "Tests"
|
|
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 testClasses
|
|
- name: "Stop Gradle"
|
|
run: gradle --stop
|
|
checkstyle:
|
|
name: "Checkstyle Main"
|
|
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
|