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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Web CI

on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read

jobs:
checks:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run build
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ Em outro terminal, inicie a API seguindo as instruções do [README do backend](
| `npm run lint` | Executa o ESLint. |
| `npm run preview` | Pré-visualiza a build localmente. |

Validação local recomendada antes de publicar alterações:
O GitHub Actions roda a instalação pelo lockfile, o lint e o build em pull requests para a `main`. Para repetir as verificações localmente:

```bash
npm ci
npm run lint
npm run build
```
Expand Down