mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
The toolchain of the rewrite: Vite with vite-plugin-pwa (autoUpdate, /api/ never cached), vue-tsc, ESLint's flat config, Vitest with happy-dom and a mount helper, an i18n check and a gzip size gate in CI, Red Hat Text self-hosted under /static/fonts.
35 lines
821 B
YAML
35 lines
821 B
YAML
name: GUI Check
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "gui/**"
|
|
- ".github/workflows/gui-check.yml"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "gui/**"
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: gui
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "24"
|
|
cache: yarn
|
|
cache-dependency-path: gui/yarn.lock
|
|
- run: yarn install --frozen-lockfile
|
|
- run: yarn lint
|
|
- run: yarn typecheck
|
|
- run: yarn i18n-check
|
|
- run: yarn test
|
|
- run: OUTPUT_DIR=dist yarn build
|
|
# Reported only until the old component library leaves the bundle;
|
|
# the gate value is set in the plan's last milestone.
|
|
- run: node scripts/size-gate.mjs dist
|