InvokeAI/.github/workflows/lint-frontend.yml

30 lines
630 B
YAML
Raw Normal View History

name: Lint frontend
on:
pull_request:
paths:
2023-01-30 23:48:43 +00:00
- 'invokeai/frontend/**'
push:
paths:
2023-01-30 23:48:43 +00:00
- 'invokeai/frontend/**'
defaults:
run:
2023-01-30 23:48:43 +00:00
working-directory: invokeai/frontend
jobs:
lint-frontend:
if: github.event.pull_request.draft == false
runs-on: ubuntu-22.04
steps:
- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- uses: actions/checkout@v3
- run: 'yarn install --frozen-lockfile'
- run: 'yarn tsc'
- run: 'yarn run madge'
2022-12-15 01:32:59 +00:00
- run: 'yarn run lint --max-warnings=0'
- run: 'yarn run prettier --check'