-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30ade1f
commit bf1dc54
Showing
31 changed files
with
19,940 additions
and
397 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Vitest CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Despliegue en producción (cambiar 'master' a 'main' si es tu rama principal) | ||
- julio # Rama de desarrollo | ||
- irving # Rama de desarrollo | ||
- jesus # Rama de desarrollo | ||
- feature/* # Cualquier rama feature | ||
pull_request: | ||
branches: | ||
- main # Rama de producción para las solicitudes de pull | ||
- julio # Rama de desarrollo para las solicitudes de pull | ||
- irving # Rama de desarrollo para las solicitudes de pull | ||
- jesus # Rama de desarrollo para las solicitudes de pull | ||
workflow_dispatch: # Activación manual opcional | ||
|
||
jobs: | ||
vitest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 # Clonar el repositorio | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' # Configurar la versión de Node.js | ||
|
||
- name: Install dependencies | ||
run: npm install --legacy-peer-deps # Instalar dependencias del proyecto | ||
|
||
- name: Install Vite (si es necesario) | ||
run: npm install --save-dev vite # Asegurarse de que Vite esté instalado | ||
|
||
- name: Install Vitest | ||
run: npm install --save-dev vitest # Instalar Vitest como dependencia de desarrollo | ||
|
||
- name: Run Vitest | ||
run: npm run test:unit # Ejecutar las pruebas de Vitest |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="1730463804558" clover="3.2.0"> | ||
<project timestamp="1730463804558" name="All files"> | ||
<coverage generated="1730932419650" clover="3.2.0"> | ||
<project timestamp="1730932419650" name="All files"> | ||
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/> | ||
</project> | ||
</coverage> |
Oops, something went wrong.