Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/agentex-ui-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "Agentex UI - Lint & Typecheck"

on:
pull_request:
branches: [ main ]
# Run lint and typecheck on any changes to agentex-ui code or workflow
paths:
- 'agentex-ui/**'
- '.github/workflows/agentex-ui-lint-typecheck.yml'

jobs:
lint-and-typecheck:
name: "Lint and Typecheck"
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v4

# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: './agentex-ui/package-lock.json'

# Install dependencies
- name: Install dependencies
run: npm ci
working-directory: ./agentex-ui

# Run TypeScript type checking
- name: Run typecheck
run: npm run typecheck
working-directory: ./agentex-ui

# Run ESLint
- name: Run lint
run: npm run lint
working-directory: ./agentex-ui