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
+33
View File
@@ -0,0 +1,33 @@
=== mvn -B -ntp verify (key lines) ===
[INFO] --- clean:3.5.0:clean (default-clean) ---
[INFO] --- cyclonedx:2.9.3:makeAggregateBom (default) ---
[INFO] --- resources:3.5.0:resources (default-resources) ---
[INFO] --- compiler:3.16.0:compile (default-compile) ---
[INFO] --- resources:3.5.0:testResources (default-testResources) ---
[INFO] --- compiler:3.16.0:testCompile (default-testCompile) ---
[INFO] --- surefire:3.6.1:test (default-test) ---
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 -- in <class>
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO] --- jar:3.5.1:jar (default-jar) ---
[INFO] --- spring-boot:4.2.0:repackage (repackage) ---
[INFO] Replacing main artifact /tmp/dd/gitea-actions/target/gitea-actions-demo-1.0.0.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] --- failsafe:3.6.1:integration-test (default) ---
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 -- in <class>
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO] --- failsafe:3.6.1:verify (default) ---
[INFO] BUILD SUCCESS
=== target/ after the build ===
gitea-actions-demo-1.0.0.jar
gitea-actions-demo-1.0.0.jar.original
=== Same command where Docker is really unreachable (docker.sock masked in a private mount namespace) ===
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 -- in <class>
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
23:57:14.999 [main] ERROR org.testcontainers.dockerclient.DockerClientProviderStrategy -- Could not find a valid Docker environment. Please check configuration. Attempted configurations were:
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 <<< FAILURE! -- in <class>
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration
[ERROR] TicketApiIT.initializationError ? IllegalState Could not find a valid Docker environment. Please see logs and check configuration
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] BUILD FAILURE