LF8/.gitea/workflows/qs.yml
Jan Klattenhoff 13bb137de7
All checks were successful
Quality Check / Tests (pull_request) Successful in 4m41s
Quality Check / Checkstyle Main (pull_request) Successful in 4m51s
build: add caching for Gradle in workflow configuration
2024-09-25 10:46:41 +02:00

61 lines
1.4 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: |
$HOME/.m2/repository
~/.m2/repository
./.gradle
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- 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: |
$HOME/.m2/repository
~/.m2/repository
./.gradle
./app/build
./build
./release
key: gradle-${{ runner.os }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: "Check"
run: gradle check
- name: "Stop Gradle"
run: gradle --stop