Add gitea-actions: Spring Boot 4.2.0 CI with surefire/failsafe, Testcontainers, CycloneDX SBOM and Jib

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
2026-12-01 23:59:28 +05:30
co-authored by Claude Sonnet 5.5
parent bb12eaca0a
commit 5facfdc212
30 changed files with 811 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# What a Maven cache is worth: the same build against an empty and a populated local repository.
source "$(dirname "$0")/lib.sh"
REPO="${COLD_REPO:-/tmp/m2-cold-demo}"
rm -rf "$REPO"
run() { # label
local start end n
start=$(date +%s)
mvn -B -Dmaven.repo.local="$REPO" -DskipITs verify > /tmp/cache-run.log 2>&1 || { tail -20 /tmp/cache-run.log; exit 1; }
end=$(date +%s)
n=$(grep -c 'Downloaded from' /tmp/cache-run.log || true)
printf '%-34s downloads: %-5s seconds: %s\n' "$1" "$n" "$((end-start))"
}
{
banner "mvn verify -DskipITs, local repository = $REPO"
run "cold (empty local repository)"
run "warm (repository restored)"
printf 'local repository size after the run: %s\n' "$(du -sh "$REPO" | cut -f1)"
echo "(seconds depend on the network; the download counts are the point)"
} 2>&1 | tee "$OUT/02-cold-vs-warm-cache.txt"