Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run unit tests
run: npm test
- name: Astro check
run: npm run check
- name: Build site
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run unit tests
run: npm test
- name: Astro check
run: npm run check
- name: Build and upload site
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Sitio web estático para mostrar mis habilidades y darme a conocer como desarrol

![Prettier](https://img.shields.io/badge/Prettier-F7B93E?logo=prettier&logoColor=gray)
![ESLint](https://img.shields.io/badge/ESLint-4B32C3?logo=eslint&logoColor=white)
![Vitest](https://img.shields.io/badge/Vitest-6E9F18?logo=vitest&logoColor=white)
![Commitlint](https://img.shields.io/badge/Commitlint-black?logo=commitlint&logoColor=white)
![Lint-staged](https://img.shields.io/badge/lint--staged-red)
![Husky](https://img.shields.io/badge/Husky-gray)
Expand Down Expand Up @@ -80,6 +81,7 @@ jsamuelap.github.io/
│ │ └── global.css # Estilos globales y configuración de Tailwind y DaisyUI
│ └── utils/
│ └── utils.astro # Funciones de utilidad
├── tests/ # Pruebas unitarias
├── .lintstagedrc # Configuración de lint-staged
├── .prettierignore # Archivos y carpetas ignorados por Prettier
├── .prettierrc # Configuración de Prettier
Expand Down Expand Up @@ -137,6 +139,18 @@ Formatear con Prettier
npm run format
```

Ejecutar todos los tests

```bash
npm test
```

Ejecutar tests en modo desarrollo

```bash
npm run test:watch
```

Ejecutar ESLint y Prettier sobre los archivos en el stage

```bash
Expand Down
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import icon from 'astro-icon';

// https://astro.build/config
export default defineConfig({
site: 'https://jsamuelap.github.io',
vite: {
plugins: [tailwindcss()],
},

integrations: [icon()],
});
Loading