From e9d232fc2279c39a402730d2c27203483c7c0502 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Thu, 14 May 2026 02:46:24 +0300 Subject: [PATCH] =?UTF-8?q?ci:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20ci=20=D0=B4=D0=BB=D1=8F=20=D1=84=D1=80=D0=BE=D0=BD?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {.github => .gitea}/workflows/backend-ci.yml | 0 .gitea/workflows/frontend-ci.yml | 63 ++++++++++++++++++++ 2 files changed, 63 insertions(+) rename {.github => .gitea}/workflows/backend-ci.yml (100%) create mode 100644 .gitea/workflows/frontend-ci.yml diff --git a/.github/workflows/backend-ci.yml b/.gitea/workflows/backend-ci.yml similarity index 100% rename from .github/workflows/backend-ci.yml rename to .gitea/workflows/backend-ci.yml diff --git a/.gitea/workflows/frontend-ci.yml b/.gitea/workflows/frontend-ci.yml new file mode 100644 index 0000000..6d47662 --- /dev/null +++ b/.gitea/workflows/frontend-ci.yml @@ -0,0 +1,63 @@ +name: Frontend CI + +on: + push: + branches: [ "main", "dev" ] + paths: + - 'frontend/**' + pull_request: + branches: [ "main", "dev" ] + paths: + - 'frontend/**' + +jobs: + build-and-check: + runs-on: ubuntu-latest + + defaults: + run: + working-directory: frontend + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + run_install: false + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: pnpm + cache-dependency-path: frontend/pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Audit dependencies + if: always() + run: pnpm audit --audit-level moderate + + - name: Check formatting + if: always() + run: pnpm exec prettier --check src/ + + - name: Lint with oxlint + if: always() + run: pnpm exec oxlint . + + - name: Lint with ESLint + if: always() + run: pnpm exec eslint . --max-warnings=0 + + - name: Type check + if: always() + run: pnpm run type-check + + - name: Build + if: always() + run: pnpm run build-only