Skip to content

Merge branch 'dev' of https://github.com/Seminario-Integrador-2024/Ge… #99

Merge branch 'dev' of https://github.com/Seminario-Integrador-2024/Ge…

Merge branch 'dev' of https://github.com/Seminario-Integrador-2024/Ge… #99

Workflow file for this run

name: FrontCI Pipeline
on:
push:
branches:
- '**' # Se ejecuta en todas las ramas
jobs:
lint:
name: Linter de Código
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setear Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Instalar dependencias
run: npm install
working-directory: ./FrontAdmin
- name: Correr linter de codigo
run: npm run lint
working-directory: ./FrontAdmin
prettier:
name: Formatear código con Prettier
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' # Solo se ejecuta en la rama main
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setear Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Instalar dependencias
run: npm install
working-directory: ./FrontAdmin
- name: Correr Prettier
run: npm run format
working-directory: ./FrontAdmin
- name: Commit changes
run: |
git config --local user.name "TobiasMaciel"
git config --local user.email "tobiasmaciel03@gmail.com"
git add .
git commit -m "chore: Se formateo el codigo con Prettier" || echo "No hay cambios para comitear"
git push