docs: Se corrige el nombre del flujo de trabajo de CI #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: maven | |
| on: | |
| push: | |
| branches: [ "main", "master" ] | |
| pull_request: | |
| branches: [ "main", "master" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' # Adoptium es el más fiable para versiones nuevas | |
| cache: maven | |
| - name: Build and Test with Maven | |
| # Usamos 'verify' para asegurar que corran Unit + Integration tests | |
| # Agregamos los flags necesarios para Mockito en Java 25 | |
| run: mvn -B clean verify -DargLine="-XX:+EnableDynamicAgentLoading -Xshare:off" | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: target-jar | |
| path: target/*.jar | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: | | |
| target/surefire-reports/*.xml |