Files
zyrarbot/.gitea/workflows/frontend.yaml
T
mmacierzanka 94be2c7c79
Backend / Lint i formatowanie (pull_request) Successful in 4s
Backend / Testy i kontrakt API (pull_request) Successful in 4s
Panel / Lint, typy i build (pull_request) Successful in 22s
Backend / Testowy build obrazu (pull_request) Successful in 1m48s
Remove CI cache (has issues)
2026-08-21 15:49:55 +02:00

49 lines
943 B
YAML

name: Panel
on:
push:
branches: [main]
paths:
- "frontend/**"
- ".gitea/workflows/frontend.yaml"
pull_request:
paths:
- "frontend/**"
- ".gitea/workflows/frontend.yaml"
workflow_dispatch:
defaults:
run:
working-directory: frontend
env:
NODE_VERSION: "22"
jobs:
verify:
name: Lint, typy i build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
# npm ci wymusza zgodność z package-lock.json, więc CI buduje
# dokładnie te wersje, które sprawdzono lokalnie.
- name: Instalacja zależności
run: npm ci
- name: ESLint
run: npm run lint
- name: Kontrola typów
run: npm run typecheck
- name: Build produkcyjny
run: npm run build
- name: Test dymny panelu
run: npm run smoke