From 63e413822341f01c7daa5e1263e0d6581768f58a Mon Sep 17 00:00:00 2001 From: AGC <158510532+AlvaroGlezC@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:59:03 +0200 Subject: [PATCH 1/2] Update build.yml --- .github/workflows/build.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27e3557..abb5189 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,4 +47,33 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: SYG-bootstrap/target/site/jacoco-aggregate/jacoco.xml - + + frontend-tests: + runs-on: ubuntu-latest + defaults: + run: + working-directory: syg-frontend + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '16' # Cambia según tu versión de Node.js + + - name: Install dependencies + run: npm install + + - name: Run tests + run: npm test + + - name: Run coverage + run: npm run coverage + + # Si quieres guardar el reporte de cobertura, puedes usar esta sección: + - name: Save coverage report + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: coverage/ From 06306089d53e44c766e2fd0e16f0f2b22f959efd Mon Sep 17 00:00:00 2001 From: AGC <158510532+AlvaroGlezC@users.noreply.github.com> Date: Sat, 27 Apr 2024 17:01:52 +0200 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abb5189..5f1fa60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: '16' # Cambia según tu versión de Node.js + node-version: '21' # Cambia según tu versión de Node.js - name: Install dependencies run: npm install