add test to ci

This commit is contained in:
Constantin Simonis 2025-02-26 10:57:36 +01:00
parent 834cb559ef
commit 39a9ca1831

View file

@ -36,6 +36,38 @@ jobs:
working-directory: ./backend
run: gradle --stop
test:
name: "Test"
runs-on: "vps-4"
container:
image: "cimg/openjdk:22.0-node"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: Setup Java 22
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "22"
- name: "Cache Gradle dependencies"
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-common
restore-keys: |
gradle-${{ runner.os }}-
- name: "Prepare Gradle"
working-directory: ./backend
run: gradle clean
- name: "Test"
working-directory: ./backend
run: gradle test
- name: "Stop Gradle"
working-directory: ./backend
run: gradle --stop
eslint:
name: eslint
runs-on: vps-4