Add TypeScript type check workflow and update webui test paths

This commit is contained in:
2025-07-26 19:26:27 +02:00
parent 6d7274ce31
commit 3375cbbc90
2 changed files with 45 additions and 3 deletions

44
.github/workflows/typescript.yaml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: TypeScript Type Check
permissions:
contents: read
on:
push:
branches:
- "*"
paths:
- "webui/**"
- ".github/workflows/typescript.yaml"
pull_request:
branches:
- main
jobs:
type-check:
name: TypeScript Type Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webui
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "./webui/package-lock.json"
- name: Install dependencies
run: npm ci
- name: Run TypeScript type check
run: npm run type-check
- name: Run ESLint
run: npm run lint
continue-on-error: true

View File

@@ -4,9 +4,7 @@ on:
push: push:
branches: [ main ] branches: [ main ]
paths: paths:
- "webui/src/**" - "webui/**"
- "webui/package.json"
- "webui/package-lock.json"
- ".github/workflows/webui_test.yaml" - ".github/workflows/webui_test.yaml"
pull_request: pull_request:
branches: [ main ] branches: [ main ]