Skip to content

Commit b94eed7

Browse files
committed
docs: Se actualiza README, pom y maven para nuevas funcionalidades
1 parent aefb9b6 commit b94eed7

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Java CI with Maven
1+
name: Java CI with Maven (JDK 25)
22

33
on:
44
push:
5-
branches: [ "main", "develop" ]
5+
branches: [ "main", "master" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "main", "master" ]
88

99
jobs:
1010
build:
@@ -17,12 +17,13 @@ jobs:
1717
uses: actions/setup-java@v4
1818
with:
1919
java-version: '25'
20-
distribution: 'oracle'
20+
distribution: 'temurin' # Adoptium es el más fiable para versiones nuevas
2121
cache: maven
2222

2323
- name: Build and Test with Maven
24-
# Añadimos el flag para permitir la carga de agentes en Java 25
25-
run: mvn -B clean package -DargLine="-XX:+EnableDynamicAgentLoading -Xshare:off"
24+
# Usamos 'verify' para asegurar que corran Unit + Integration tests
25+
# Agregamos los flags necesarios para Mockito en Java 25
26+
run: mvn -B clean verify -DargLine="-XX:+EnableDynamicAgentLoading -Xshare:off"
2627

2728
- name: Upload Build Artifact
2829
uses: actions/upload-artifact@v4

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
![Mockito](https://img.shields.io/badge/Mockito-5.20.0-6bba46?style=for-the-badge&logo=mockito&logoColor=white)
88
![H2](https://img.shields.io/badge/H2_Database-004B8D?style=for-the-badge&logo=sqlite&logoColor=white)
99
![Spring](https://img.shields.io/badge/Spring_JDBC-6DB33F?style=for-the-badge&logo=spring&logoColor=white)
10+
![Tests](https://img.shields.io/badge/Tests-100%25%20Passed-brightgreen?style=for-the-badge&logo=checkmarx&logoColor=white)
11+
![Build Status](https://img.shields.io/github/actions/workflow/status/luiscacuango2/javatest/maven.yml?style=for-the-badge&logo=github&label=CI%20Build)
12+
1013
## **Descripción**
1114
Este repositorio es un ecosistema de aprendizaje y desarrollo en Java. Contiene implementaciones de algoritmos clásicos, gestión de lógica de negocio y pruebas de integración, sirviendo como base sólida para despliegue de componentes escalables.
1215

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<maven.compiler.target>25</maven.compiler.target>
1414
</properties>
1515

16+
<prerequisites>
17+
<maven>3.2.5</maven>
18+
</prerequisites>
19+
1620
<dependencies>
1721

1822
<dependency>
@@ -53,6 +57,10 @@
5357
<artifactId>maven-surefire-plugin</artifactId>
5458
<version>3.2.5</version>
5559
<configuration>
60+
<includes>
61+
<include>**/*Test.java</include>
62+
<include>**/*Should.java</include>
63+
</includes>
5664
<argLine>
5765
-XX:+EnableDynamicAgentLoading
5866
-Xshare:off

0 commit comments

Comments
 (0)