mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
41 lines
745 B
YAML
41 lines
745 B
YAML
name: UI Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
paths:
|
|
- 'packages/ui/**'
|
|
pull_request:
|
|
branches: [master]
|
|
paths:
|
|
- 'packages/ui/**'
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: packages/ui
|
|
|
|
jobs:
|
|
lint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: 'packages/ui/.tool-versions'
|
|
cache: 'npm'
|
|
cache-dependency-path: packages/ui/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint
|
|
|
|
- name: Run TypeScript type check
|
|
run: npm run typecheck
|