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/