Merge pull request 'deleted space to check security' (#12) from feat/fixing-security-patches into main
All checks were successful
CI Pipeline / lint-and-test (push) Successful in 3m9s

Reviewed-on: https://owgit.duckdns.org/DrunkenPinguin/LernApp/pulls/12
This commit is contained in:
DrunkenPinguin 2026-09-21 20:20:16 +00:00
commit b77d7b7fdc
5 changed files with 180 additions and 179 deletions

View file

@ -2,7 +2,7 @@ name: CI Pipeline
on: on:
push: push:
branches: [ "main" ] branches: [ "main", "feat/*" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
@ -12,10 +12,10 @@ jobs:
steps: steps:
- name: Code auschecken - name: Code auschecken
uses: https://github.com/actions/checkout@v4 # <-- Vollständige URL oder github/ Prefix uses: https://github.com/actions/checkout@v4
- name: Java 21 einrichten - name: Java 21 einrichten
uses: https://github.com/actions/setup-java@v4 # <-- Vollständige URL oder github/ Prefix uses: https://github.com/actions/setup-java@v4
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: '21' java-version: '21'
@ -24,10 +24,10 @@ jobs:
run: chmod +x gradlew run: chmod +x gradlew
- name: 1. Code-Style (Linter) prüfen - name: 1. Code-Style (Linter) prüfen
run: ./gradlew ktlintCheck run: ./gradlew ktlintCheck --no-daemon
- name: 2. Tests ausführen - name: 2. Tests ausführen
run: ./gradlew test run: ./gradlew test --no-daemon
- name: 3. Backend bauen - name: 3. Backend bauen
run: ./gradlew build -x test --max-workers=2 -Dorg.gradle.jvmargs="-Xmx1024m" run: ./gradlew build -x test --max-workers=2 --no-daemon -Dorg.gradle.jvmargs="-Xmx1024m"

Binary file not shown.

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000 networkTimeout=10000
retries=0 retries=0
retryBackOffMs=500 retryBackOffMs=500

19
gradlew vendored
View file

@ -114,6 +114,8 @@ MSYS* | MINGW*) msys=true ;; #(
NONSTOP* ) nonstop=true ;; NONSTOP* ) nonstop=true ;;
esac esac
# Determine the Java command to use to start the JVM. # Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@ -130,7 +132,8 @@ location of your Java installation."
fi fi
else else
JAVACMD=java JAVACMD=java
if ! command -v java >/dev/null 2>&1; then if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the Please set the JAVA_HOME variable in your environment to match the
@ -146,7 +149,6 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop"; then
# shellcheck disable=SC2039,SC3045 # shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) || MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit" warn "Could not query maximum file descriptor limit"
;;
esac esac
case $MAX_FD in #( case $MAX_FD in #(
'' | soft) :;; #( '' | soft) :;; #(
@ -155,7 +157,6 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop"; then
# shellcheck disable=SC2039,SC3045 # shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" || ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD" warn "Could not set maximum file descriptor limit to $MAX_FD"
;;
esac esac
fi fi
@ -174,14 +175,12 @@ if "$cygwin" || "$msys"; then
JAVACMD=$( cygpath --unix "$JAVACMD" ) JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh # Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg; do for arg do
if if
case $arg in #( case $arg in #(
-*) false ;; # don't mess with options #( -*) false ;; # don't mess with options #(
/?*) /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath [ -e "$t" ] ;; #(
[ -e "$t" ]
;; #(
*) false ;; *) false ;;
esac esac
then then
@ -199,6 +198,7 @@ if "$cygwin" || "$msys"; then
done done
fi fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@ -214,7 +214,8 @@ set -- \
"$@" "$@"
# Stop when "xargs" is not available. # Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1; then if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available" die "xargs is not available"
fi fi