From bc57ca552748fd87fe947ff108ce22e17794d6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Vel=C3=A1squez?= Date: Thu, 8 May 2025 20:59:55 +0200 Subject: [PATCH 1/2] Update pruebas.yml --- .github/workflows/pruebas.yml | 51 ++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pruebas.yml b/.github/workflows/pruebas.yml index 2db842e3..1cb94ead 100644 --- a/.github/workflows/pruebas.yml +++ b/.github/workflows/pruebas.yml @@ -1,28 +1,37 @@ -name: Flujo de trabajo para ejecutar los test +name: Pruebas CI + on: workflow_dispatch: push: - branches: [ V.0.2 ] - pull_request: - branches: [ V.0.2 ] - schedule: - - cron: '1 23 * * 0-4' + branches: + - main + jobs: - Build: + build: runs-on: ubuntu-latest - env: - GITHUB_LOGIN: ${{ github.actor }} - GITHUB_PACKAGES: ${{ secrets.GHTOKEN }} - GITHUB_OAUTH: ${{ secrets.GHTOKEN }} steps: - - name: Clonando el repositorio y estableciendo el espacio de trabajo - uses: actions/checkout@v3 - - name: Configurando java - uses: actions/setup-java@v3 + - name: Checkout del código + uses: actions/checkout@v2 + + - name: Configurar Java + uses: actions/setup-java@v2 with: - distribution: 'temurin' - java-version: '16' - - name: Construyendo y probando el código - run: | - chmod +x gradlew - ./gradlew build + java-version: '17' + + - name: Construcción del artefacto + run: ./gradlew build + + test: + runs-on: ubuntu-latest + needs: build + steps: + - name: Checkout del código + uses: actions/checkout@v2 + + - name: Configurar Java + uses: actions/setup-java@v2 + with: + java-version: '17' + + - name: Ejecutar pruebas + run: ./gradlew test From 304b6cb46979f111d6b90e41da79b4775b53bfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Vel=C3=A1squez?= Date: Thu, 8 May 2025 21:02:17 +0200 Subject: [PATCH 2/2] Update pruebas.yml --- .github/workflows/pruebas.yml | 53 ++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pruebas.yml b/.github/workflows/pruebas.yml index 1cb94ead..01710b75 100644 --- a/.github/workflows/pruebas.yml +++ b/.github/workflows/pruebas.yml @@ -1,37 +1,50 @@ -name: Pruebas CI +name: Flujo de trabajo para ejecutar los test on: workflow_dispatch: push: - branches: - - main + branches: [ V.0.2 ] + pull_request: + branches: [ V.0.2 ] + schedule: + - cron: '1 23 * * 0-4' jobs: - build: + Build: runs-on: ubuntu-latest + env: + GITHUB_LOGIN: ${{ github.actor }} + GITHUB_PACKAGES: ${{ secrets.GHTOKEN }} + GITHUB_OAUTH: ${{ secrets.GHTOKEN }} steps: - - name: Checkout del código - uses: actions/checkout@v2 + - name: Clonando el repositorio y estableciendo el espacio de trabajo + uses: actions/checkout@v3 - - name: Configurar Java - uses: actions/setup-java@v2 + - name: Configurando java + uses: actions/setup-java@v3 with: - java-version: '17' + distribution: 'temurin' + java-version: '16' - - name: Construcción del artefacto - run: ./gradlew build + - name: Construyendo el código + run: | + chmod +x gradlew + ./gradlew build - test: + Test: runs-on: ubuntu-latest - needs: build + needs: Build steps: - - name: Checkout del código - uses: actions/checkout@v2 + - name: Clonando el repositorio y estableciendo el espacio de trabajo + uses: actions/checkout@v3 - - name: Configurar Java - uses: actions/setup-java@v2 + - name: Configurando java + uses: actions/setup-java@v3 with: - java-version: '17' + distribution: 'temurin' + java-version: '16' - - name: Ejecutar pruebas - run: ./gradlew test + - name: Ejecutando los tests + run: | + chmod +x gradlew + ./gradlew test