diff --git a/.github/workflows/typescript.yaml b/.github/workflows/typescript.yaml new file mode 100644 index 0000000..415d4eb --- /dev/null +++ b/.github/workflows/typescript.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/webui_test.yaml b/.github/workflows/webui_test.yaml index 8eccfd3..f215371 100644 --- a/.github/workflows/webui_test.yaml +++ b/.github/workflows/webui_test.yaml @@ -4,9 +4,7 @@ on: push: branches: [ main ] paths: - - "webui/src/**" - - "webui/package.json" - - "webui/package-lock.json" + - "webui/**" - ".github/workflows/webui_test.yaml" pull_request: branches: [ main ]