41 lines
895 B
YAML
41 lines
895 B
YAML
name: CI / UI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main", "master"]
|
|
paths:
|
|
- "ui/**"
|
|
- ".gitea/workflows/ci-ui.yaml"
|
|
pull_request:
|
|
branches: ["main", "master"]
|
|
paths:
|
|
- "ui/**"
|
|
- ".gitea/workflows/ci-ui.yaml"
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ui
|
|
|
|
jobs:
|
|
# ── type-check & build ───────────────────────────────────────────────────────
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: npm
|
|
cache-dependency-path: ui/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Type check
|
|
run: npm run check
|
|
|
|
- name: Build
|
|
run: npm run build
|