49 lines
943 B
YAML
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
|