cypress despliegue en vercel #32
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
name: Vitest CI | |
on: | |
push: | |
branches: | |
- main # Despliegue en producción | |
- julio # Ramas de desarrollo | |
- irving # Ramas de desarrollo | |
- jesus # Ramas 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 | |
#HOla | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install --legacy-peer-deps | |
- name: Install Vitest | |
run: npm install --save-dev vitest --force | |
- name: Run Vitest | |
run: npm run test:unit |