mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-05 16:44:22 +00:00
Add TypeScript type check workflow and update webui test paths
This commit is contained in:
44
.github/workflows/typescript.yaml
vendored
Normal file
44
.github/workflows/typescript.yaml
vendored
Normal 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
|
||||||
4
.github/workflows/webui_test.yaml
vendored
4
.github/workflows/webui_test.yaml
vendored
@@ -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 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user