Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroGlezC authored Apr 27, 2024
1 parent be1e4a1 commit 63e4138
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 63e4138

Please sign in to comment.