From ef35661933e871d1ca1a9a087189ec88bc192817 Mon Sep 17 00:00:00 2001 From: Padoka Date: Wed, 25 Nov 2026 23:35:33 -0300 Subject: [PATCH] ci: verify frontend lint and build --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dddb9a6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 561efd6..f1c3c72 100644 --- a/README.md +++ b/README.md @@ -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 ```