Files
blackroad-os-prism-console/.github/workflows/lint.yml
Alexa Louise 0f0028ad1b Add auto-merge automation workflows
- Auto-merge workflow for PRs with automerge label
- Dependabot auto-merge for patch/minor updates
- Weekly dependency updates via Dependabot

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 16:51:39 -06:00

41 lines
945 B
YAML

name: Lint
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
lint:
name: ESLint & Type Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run TypeScript type check
run: npm run type-check
- name: Check formatting (if prettier is configured)
run: |
if [ -f ".prettierrc" ] || [ -f ".prettierrc.json" ] || [ -f "prettier.config.js" ]; then
npx prettier --check "src/**/*.{ts,tsx,js,jsx,json,css,md}"
else
echo "No Prettier configuration found, skipping formatting check"
fi
continue-on-error: true