# oikos-web CI (Gitea Actions) — SPA pipeline, mirrors the web job this
# repo inherited from dtoro/oikos.
name: ci

on:
  push:
    branches: [main]
  pull_request:

jobs:
  web:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: web
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '22'
          cache: npm
          cache-dependency-path: web/package-lock.json
      - run: npm ci
      - name: svelte-check (advisory — baseline not yet clean)
        run: npm run check
        continue-on-error: true
      - name: eslint (advisory — baseline not yet clean)
        run: npm run lint
        continue-on-error: true
      - name: prettier format check (advisory — baseline not yet clean)
        run: npm run format:check
        continue-on-error: true
      - name: test
        run: npm run test
      - name: build
        run: npm run build
